Hide Admin CI/CD variable Environment scope field
What does this MR do and why?
This is behind a disabled FF ci_variable_settings_graphql
In Admin view, you cannot edit the environment scope. We used to show it disabled, but now instead we want to hide it completely. This should avoid confusion as this feel as though it could be enabled but never will be.
Note that we couldn't solely rely on whether environment scope is enabled or not because for groups, for example, we want to show it disabled because you could have it enabled via a feature flag, while in admin it will never be shown. Therefore we introduce a new prop that hides the section completely that we pass down from admin.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Turn on the feature flag
ci_variable_settings_graphql
- Go to `Admin => Settings => CI/CD => Variables
- Add a new variable
- notice the environment scope field is no longer visible
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 #369050 (closed)