Apply Compliance Framework
Follow up from discussion in this thread #379038 (comment 1168394989)
Adds the ability to select projects within the new compliance framework report, and apply a framework to these selections.
User can individually select projects, or select all projects shown on the current page of results.
Selecting all projects over all pages as shown in the design will be handled separately in #388484
Designs
Designs -> #385303 (closed)
Implementation plan
- Functionality added to the new compliance framework report that will be built in #387910 (closed)
- Extend the table with checkboxes for selecting individual rows or all rows
- implementation will be similar to the vulnerability list
- add new selection_summary component
- show number of items selected
- include
<gl-dropdown>
to allow selecting a compliance framework - when clicking "Apply framework" button, show a confirmation
<gl-modal>
confirming the selected framework and number of selected projects - store the selected projects and their current frameworks before mutating, in state, to later allow undo
- when confirmed, send a GraphQL mutation
- when successfully submitted, show a
<gl-toast>
confirming the action, and an Undo button to trigger another mutation to reverse the change. - if the mutation fails, show the error in a
<gl-alert>
- tests
- documentation
Edited by Elwyn Benson