Add endpoint to clusterList Vue component
What does this MR do?
This is a refactor update for the cluster page redesign.
Epic: &2666 (closed)
New design mockup: #207031 (closed)
Updates:
There is a Cluster Vue component that needs a json endpoint to query cluster data
file: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/clusters/clusters/index.html.haml
#js-clusters-list-app{ data: { endpoint: 'todo/add/endpoint' } }
The json api was recently added on the backend (!30635 (merged)). The ClusterList component can be updated to use the new endpoint.
The endpoint is still missing some values so the feature flag will not be removed.
This MR will:
- Add new endpoint to render ClusterList component
- Refactor ClusterList component
- Update tests to match updated data/views
Screenshots
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team