Add Security Manager role frontend support for GraphQL queries

Summary

This MR adds frontend support for the Security Manager role in GraphQL queries and resolvers, building on top of the backend security manager implementation. The changes ensure that the Security Manager role is properly exposed through the GraphQL API and can be toggled via the security manager feature flag.

Changes

  • GraphQL Enum: Added SECURITY_MANAGER to MemberAccessLevelEnum to ensure it's always available in GraphQL during feature flag rollout
  • GraphQL Queries: Updated group_roles.query.graphql and instance_roles.query.graphql to include SECURITY_MANAGER in the access level filters
  • Resolver Logic: Modified StandardRolesResolver to filter out Security Manager role when the feature is disabled via Gitlab::Security::SecurityManagerConfig.enabled?

Testing

All existing tests pass. Added tests to verify:

  • SECURITY_MANAGER is always exposed in the GraphQL enum
  • Role is properly filtered when the feature is disabled
  • Resolver returns correct data for the Security Manager role

Relates to issue #582645 (closed)

Merge request reports

Loading