Skip to content

Add endpoint to clusterList Vue component

Emily Ring requested to merge 207031-cluster-list-backend into master

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:

  1. Add new endpoint to render ClusterList component
  2. Refactor ClusterList component
  3. Update tests to match updated data/views

Screenshots

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

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
Edited by 🤖 GitLab Bot 🤖

Merge request reports