Add the ability to edit a framework's projects from the Edit Framework Section
What does this MR do and why?
Add the ability to add and remove projects from the edit frameworks page.
Duo generated description
This change adds the ability to associate projects with compliance frameworks in GitLab. The main updates include:
- A new GraphQL input type for adding or removing projects from compliance frameworks
- A redesigned projects section in the compliance framework edit interface that shows a list of all available projects with checkboxes
- The ability to select multiple projects at once or use a "select all" checkbox
- Project data is now fetched from the GraphQL API to show both associated and non-associated projects
- When projects are selected or deselected, the changes are tracked and emitted to the parent component
- Error handling for API requests with Sentry integration
The UI has been simplified by removing the informational text that previously directed users to a separate page for project association. Instead, users can now directly manage project associations from the compliance framework edit page.
References
- Add all available projects to the Projects section of the Update Framework page
- Add Selected all/none functionality to the Projects section of the Edit Frameworks Page
Screenshots or screen recordings
New Framework
| Before | After |
|---|---|
![]() |
![]() |
Existing Framework: No projects applied
| Before | After |
|---|---|
![]() |
![]() |
Existing Framework: Projects applied
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
New framework testing
- Go to the Compliance Center and click on the
New Frameworkbutton
- Populate the Basic information section of the form
- Open the projects section and apply/remove projects.
- Save the project (persisting project updates depends on !186483 (merged) being merged)
Existing framework testing
- Follow the instructions for New framework testing if you don't have a framework already
- Go to the Compliance center projects page and select your new framework
- Go back to the Compliance Center and click Edit on your framework
- You should now see the UI with your project added for testing (persisting project updates depends on !186483 (merged) being merged)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Dakota Dux







