Skip to content

Draft: Basic compliance Framework Report data fetching and table

What does this MR do and why?

Continues implementation of new Compliance Framework Report from Compliance Framework Report tabs (!110474 - merged)

This functionality is all behind a development feature flag and will remain so until the next few MRs are released.

Add data fetching and basic table of projects + frameworks. implements loading, empty, error and happy states. Implementation is largely based on the compliance violations report.

This change intentionally does not include pagination, sorting, filtering etc which will be implemented in future MRs.

Also adds framework_badge component for displaying a projects framework, and plug this into the existing violations report. This is so we can have one way of displaying framework badges going forwards.

Screenshots or screen recordings

loading state error state empty state projects table hover on framework
frameworks-report_loading frameworks-report_error frameworks-report_empty-state image frameworks-report_hover-tooltip

How to set up and validate locally

  1. Browse to a Group -> Security & Compliance -> Compliance Report
  2. There should be no visible changes when feature flag is disabled
  3. There should be new tabs when the feature flag is disabled. Selecting "Frameworks" should show the new data fetching and table of results
Feature.enable(:compliance_frameworks_report)
Feature.disable(:compliance_frameworks_report)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #387910 (closed)

Edited by Elwyn Benson

Merge request reports