Skip to content

Stop calling api/projects/list on every UI page #3473

@r4victor

Description

@r4victor

Currently, UI call api/projects/list when loading practically any UI page (e.g. Runs, Fleets, Instances, etc) even when it doesn't seem to be necessary. This endpoint can be heavy for global admins (especially on Sky) since it returns all projects on the server.

The main reason call api/projects/list seems to be useProjectFilter that allows filtering resources by project name. For this, we could introduce api endpoint to list project names only (perhaps by prefix, with a limit).

Also:

Overall, ensure the UI never lists all projects (besides Projects page currently). Introduce more efficient API if needed.

Ensure the same for api/users/list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions