-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Labels
Description
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:
useCheckingForFleetsInProjectsshould notuseGetProjectsQuerysince there is alreadyuseGetOnlyNoFleetsProjectsQuery.- TutorialPanel should not list all projects.
- Select only project names for events project filtering.
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.