Skip to content

Add possibility to create requirements

The merge request updates the Compliance Dashboard feature. It adds a new component called Requirement Modal, which allows users to create and edit requirements for compliance frameworks. It also includes a new GraphQL mutation to create compliance requirements and updates the existing GraphQL query to fetch compliance frameworks with mock requirements.

Display requirement data

Add requirements section to add/edit framework screens

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-10-30_at_21.38.55

How to set up and validate locally

  1. Enable FF enable_standards_adherence_dashboard_v2 (sorry for long name, I am not the author)
  2. Make sure you have admin rights and group with an Ultimate subscription
  3. Go to Compliance Center
  4. Try editing/creating framework
  5. Create one or more Requirements
  6. Update Framework - check that the requirement mutation was called

Conrtols are not part of this MR, Updating and deleting requirements will come later as well. We also can't fetch the created requiremnts yet because the compliance framework query still missing this fields

Related to #478095

Edited by Nataliia Radina

Merge request reports

Loading