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 |
How to set up and validate locally
- Enable FF
ci_private_catalog_beta
- Make sure your GDK instance use an ultimate license
- Log in into your user account
- 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
- Notice that you have landed on the Catalog page!
- Disable the FF
- Notice that the navigation item is gone
- If you have a premium user account, connect to this one
- Create a project under a premium namespace
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #393210 (closed)