Skip to content

Apply compliance framework to all projects matching filters

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

EDIT: there is still discussion happening about whether this feature will be added, and if so what it will look like. Check the design issue before comitting.

Following up from #383209 (closed) where users can select individual projects and apply a framework to them, now allow applying to all matching projects beyond what are shown on the current page.

04_-_Checkbox__framework_selected__buttons_loading

Since we will be applying changes to potentially many projects which the frontend does not know about (e.g. because the frontend only has fetched page 1 of many) we need a way to apply the change to all projects that match the current filter.

Design

when not everything selected when everything selected
02_-_Selected-projects-no-bulk-option-not-all 02_-_Selected-projects-no-bulk-option-all

Implementation plan

  • backend change to accept a mutation containing the same filters the frontend can query with as well as a framework to apply
  • frontend to extend the filter component built in #387911 (closed)
    • add button to "select all N items"
    • checkboxes hidden when all items selected
    • pass current filter state as part of mutation when applying the change so backend can apply the change to the same set of projects
Edited by 🤖 GitLab Bot 🤖