Skip to content

Adds empty state component for GAR integration settings

Rahul Chanila requested to merge 439371-integrations-empty-state into master

What does this MR do and why?

Adds empty state component for GAR integration settings

If google_cloud_platform_workload_identity_federation_integration does not exist on project, integrations_helper is updated to return:

  • path to Google Cloud Identity and Access Management settings page.
  • editable as false.

Renders empty_state component when above path exists.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Proposal After
image Screenshot_2024-02-21_at_2.14.15_pm

How to set up and validate locally

  1. Enable container registry in the gdk https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md#set-up-container-registry-to-display-in-ui-only

  2. Simulate a SAAS instance in local GDK

  3. In rails console enable the experiments

    Feature.enable(:gcp_artifact_registry)
    Feature.enable(:google_cloud_workload_identity_federation)

Flow 1

  1. Visit Project > Settings > Integrations > Google Cloud Artifact registry
  2. Empty state should be visible
  3. Click on Set up Google Cloud IAM
  4. Add settings.
  5. Visit Project > Settings > Integrations > Google Cloud Artifact registry again
  6. Empty state should be not be visible anymore.

Flow 2

  1. Visit Project > Settings > Integrations > Google Cloud Artifact registry
  2. Empty state should be visible
  3. Visit Group > Settings > Integrations > Google Cloud IAM
  4. Add settings.
  5. Visit Project > Settings > Integrations > Google Cloud Artifact registry again
  6. Empty state should be not be visible anymore.

Related to #439371 (closed)

Edited by Rahul Chanila

Merge request reports