Skip to content

Add and refactor Administration menu

What does this MR do?

In this MR, we're refactoring the Administration menu. We're moving it from being a partial rendered menu to an object-driven menu, like all the menus in the project sidebar.

For that, we're just introducing a new object to store the menu info and removing the related info from the menu partial.

Screenshots or Screencasts (strongly suggested)

image

How to setup and validate locally (strongly suggested)

  • Enable the feature flag group_administration_nav_item
  • Most of the menus in the Administration menu requires some configuration to be set. For example:
    • ::Gitlab::Auth::GroupSaml::Config.enabled? needs to be enabled
    • group.feature_available?(:group_saml) needs to be enabled as well
    • ::License.feature_available?(:usage_quotas) is required
    • ::Gitlab::CurrentSettings.should_check_namespace_plan?

The easiest way to test this menu, although you won't be able to access the actual pages is to comment out:

Does this MR meet the acceptance criteria?

Conformity

Related to #336968 (closed)

Merge request reports