-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
None
-
Product / Portfolio Work
-
False
-
-
False
-
5
-
None
-
None
-
None
Background
"Something to add into a new Jira ticket. But this pages results should be done in the backend, if a cluster has thousands of dashboards we don't want to fetch them all and slice them in the frontend, if the Perses API does not support yet pagination we should add it." https://github.com/openshift/monitoring-plugin/pull/666#discussion_r2597881840
The current implementation of the Perses Dashboards > DashboardListPage fetches all the dashboards before they are displayed. Instead, we want to fetch the list of dashboards in batches (for loading efficiency in case there are thousands of dashboards).
Steps
- Review `api/v1/dashboards?metadata_only=true` (check if dashboards are always returned in the same order)
- Create something like `api/v1/dashboards?metadata_only=true&pagination-start=10&pagination-end=20`, given indices of pagination-start and pagination-end, return the dashboard list slice
Outcomes
- In github.com/perses/perses, there will be an endpoint that supports pagination
- In github.com/openshift/monitoring-plugin the 'DashboardList' component will be updated to call the new API