Support multiple ids when querying compliance frameworks
What does this MR do and why?
This MR adds support to query multiple compliance frameworks by ids
.
Additional context why this is needed can be found here: #432320 (comment 1658138439).
Screenshots or screen recordings
All | Filtered |
---|---|
How to set up and validate locally
- Create a new group
- For that group create multiple Compliance Frameworks (Settings -> General -> Compliance Frameworks)
- Go to GraphQL Explorer (
/-/graphql-explorer
) - Try to fetch frameworks with provided IDs. Example query:
query getComplianceFramework( $fullPath: ID! $complianceFrameworks: [ComplianceManagementFrameworkID!] ) { namespace(fullPath: $fullPath) { id name complianceFrameworks(ids: $complianceFrameworks) { nodes { id name default description color pipelineConfigurationFullPath projects { nodes { id name } } } } } }
{ "fullPath": "compliance-frameworks", "complianceFrameworks": ["gid://gitlab/ComplianceManagement::Framework/4", "gid://gitlab/ComplianceManagement::Framework/3"] }
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #432507 (closed)
Edited by Martin Čavoj