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
MemberAccessLevelEnumto ensure it's always available in GraphQL during feature flag rollout -
GraphQL Queries: Updated
group_roles.query.graphqlandinstance_roles.query.graphqlto include SECURITY_MANAGER in the access level filters -
Resolver Logic: Modified
StandardRolesResolverto filter out Security Manager role when the feature is disabled viaGitlab::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
Related Issues
Relates to issue #582645 (closed)