Adds empty state component for GAR integration settings
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
-
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
-
Simulate a SAAS instance in local GDK
-
In rails console enable the experiments
Feature.enable(:gcp_artifact_registry) Feature.enable(:google_cloud_workload_identity_federation)
Flow 1
- Visit
Project > Settings > Integrations > Google Cloud Artifact registry
- Empty state should be visible
- Click on
Set up Google Cloud IAM
- Add settings.
- Visit
Project > Settings > Integrations > Google Cloud Artifact registry
again - Empty state should be not be visible anymore.
Flow 2
- Visit
Project > Settings > Integrations > Google Cloud Artifact registry
- Empty state should be visible
- Visit
Group > Settings > Integrations > Google Cloud IAM
- Add settings.
- Visit
Project > Settings > Integrations > Google Cloud Artifact registry
again - Empty state should be not be visible anymore.
Related to #439371 (closed)
Edited by Rahul Chanila