Add gitlab_apps wip feature flag

What does this MR do and why?

Adds the gitlab_apps wip feature flag (EE, default off) so GitLab Apps work can land behind it, along with Gitlab::Apps, a hardcoded registry of the Customer 0 apps that need no project or group context (currently only Orbit Portal, in the sidebar). The registry is the only place that checks the flag, with the top-level group as the actor. Nothing calls it yet; the mount points (super sidebar, top bar, pipeline header) follow in a separate MR.

References

Screenshots or screen recordings

Not applicable: no UI change.

How to set up and validate locally

Nothing in the UI uses the registry yet, so check it in a Rails console:

group = Group.find_by_full_path('gitlab-org')
Gitlab::Apps.for(group, mount: :sidebar)   # => []

Feature.enable(:gitlab_apps, group)
Gitlab::Apps.for(group, mount: :sidebar).map(&:title)
# => ["Orbit Portal"]

MR acceptance checklist

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

Edited by Janis Altherr

Merge request reports

Loading
Loading