[Frontend] Add the ability to manage a default project compliance framework on groups
Problem description
This issue is an iteration in developing Group-level setting for default compliance fram... (&8815 - closed).
Proposal
Update the existing group compliance framework settings UI to enable users to select and remove a default framework.
Designs
Implementation plan
frontend
Related issue to update the list to match the designs: Compliance Framework – Update settings (#371013 - closed)
- Update the GraphQL query to also fetch the
defaultstatus of each framework. - Add a mutation to the list view to set the
defaultattribute of a framework.- Note: Setting one framework to
default: truesets all others todefault: false. This is worth considering if there's any caching. Ie we mutate one framework todefault: truebut the previous default framework also shows as default.
- Note: Setting one framework to
- Add an ellipses icon in a
GlButtonto the end of the actions. - Move the delete action to the ellipses dropdown.
- Note: Default frameworks cannot be deleted.
- Add an action for marking the framework as
defaultwhen not default. - Add an action for removing the
defaultstatus of a framework when it is default. - Update
list_item.vueto display aGlBadgewhen the item isdefault. - Update specs.
- Update documentation https://docs.gitlab.com/ee/user/group/manage.html#compliance-frameworks
Edited by Jiaan Louw