Skip to content

CI Catalog - Add Feature flag and catalog page

What does this MR do and why?

We are starting to build the private CI catalog, which is an ultimate-only feature. Therefore, we are adding helpers and conditional to render this section only when we want, which boils down to 3 condition: User has access to an ultimate license, the FF for the project is enabled (ci_private_catalog_beta) and user has permission within the project (e.g. is logged in and is a member of the project).

Then, we add the most basic page component to show a dummy title like "Welcome to CI catalog". We are adding a feature spec file with a test that ensure navigation works and that the permissions are set correctly, which must ensure that you can only see this nav item with the right permissions.

The navigation item will be added in a following MR once it has been approved by the group navigation team.

Screenshots or screen recordings

Before After
There was nothing under CI/CD navigation Screenshot_2023-03-09_at_1.43.24_PM

How to set up and validate locally

  1. Enable FF ci_private_catalog_beta
  2. Make sure your GDK instance use an ultimate license
  3. Log in into your user account
  4. Navigate to the catalog page. There are no navigation item as of now as the placement is still undecided. So navigate to: http://gdk.test:3000/$namespace/$project/-/ci/catalog/resources
  5. Notice that you have landed on the Catalog page!
  6. Disable the FF
  7. Notice that the navigation item is gone
  8. If you have a premium user account, connect to this one
  9. Create a project under a premium namespace
  10. Notice that the navigation item is not present

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #393210 (closed)

Edited by Frédéric Caplette

Merge request reports

Loading