deployments: add pagination to deployment device list

Description

With increasingly large deployments, the endpoint to get devices that are part of a deployment (`/api/management/v1/deployments/deployments/<deploymentId>/devices`) causes issues as it doesn't have any pagination capabilities.

To help this scale also for large device fleets/ groups, the same pagination facilities should be supported:

  • per page

  • page

  • x-total-count header - to indicate the number of pages that should be expected

Affects versions

None

Environment

None

Checklist

Activity

Show:

Alex MiliukovMay 19, 2021 at 11:22 AM

With adding pagination to `/api/management/v1/deployments/deployments/<deploymentId>/devices` endpoint default behaviour is changed, which breaks back compatibility. It's decided to add new `/api/management/v1/deployments/deployments/<deploymentId>/devices/list` and mark the original one as deprecated with future deletion in further releases.

Alex MiliukovMay 18, 2021 at 8:21 AM

Fabio TranchitellaMay 5, 2021 at 2:14 PM

when done with your current task, can you please have a look at this one?

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

0

Backlog

yes

Zendesk Support

Checklist

Created September 29, 2020 at 2:12 PM
Updated May 25, 2021 at 1:34 PM
Resolved May 25, 2021 at 1:34 PM