Skip to content

Implement pagination for /api/projects/list and /api/users/list #3487

@r4victor

Description

@r4victor

Currently the endpoints /api/projects/list and ``/api/users/listare not paginated and return ALL resources visible to the user. For global admins there can be many (e.g. thousands), which leads to heavy db queries and large responses. The UI also calls/api/projects/list` just to check if user has some projects, which is unnecessary expensive.

The endpoints need to be paginated similar to /api/runs/list, /api/fleets/list, etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions