Skip to content

[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

&8815 (closed)

Implementation plan

frontend 3️⃣

Related issue to update the list to match the designs: Compliance Framework – Update settings (#371013 - closed)

  1. Update the GraphQL query to also fetch the default status of each framework.
  2. Add a mutation to the list view to set the default attribute of a framework.
    • Note: Setting one framework to default: true sets all others to default: false. This is worth considering if there's any caching. Ie we mutate one framework to default: true but the previous default framework also shows as default.
  3. Add an ellipses icon in a GlButton to the end of the actions.
  4. Move the delete action to the ellipses dropdown.
    • Note: Default frameworks cannot be deleted.
  5. Add an action for marking the framework as default when not default.
  6. Add an action for removing the default status of a framework when it is default.
  7. Update list_item.vue to display a GlBadge when the item is default.
  8. Update specs.
  9. Update documentation https://docs.gitlab.com/ee/user/group/manage.html#compliance-frameworks
Edited by Jiaan Louw