Draft: Add Security Manager role to frontend access level constants

What does this MR do?

This MR exposes the Security Manager role in frontend access level constants and helpers, building on the GraphQL schema support added in !582642.

Changes included

  • Add Security Manager constants to app/assets/javascripts/access_level/constants.js:
    • ACCESS_LEVEL_SECURITY_MANAGER_INTEGER (25)
    • ACCESS_LEVEL_SECURITY_MANAGER_STRING constant
    • Add to BASE_ROLES array with description
    • Add to access level mapping objects
  • Gate Security Manager visibility behind securityManagerRoleEnabled feature flag
  • Expose feature flag in lib/gitlab/gon_helper.rb for frontend access
  • Add Security Manager to localized_access_names helper in projects_helper.rb
  • Add localization string for "Security Manager".

Feature flag

All Security Manager additions are conditionally included based on window.gon?.features?.securityManagerRoleEnabled, which checks Gitlab::Security::SecurityManagerConfig.enabled? on the backend.

Closes #582644

Changelog

Changelog: added EE: true

Merge request reports

Loading