Migrate generic report item to GraphQL: "Table"

What does this MR do and why?

It adds support for rendering the table report type within the GraphQL version of the security pipeline modal.

Screenshots or screen recordings

(Note: The gap next to the nested table is because that cell is supposed to render a named-list, which is not yet working)

Screenshot_2023-03-15_at_5.15.01_pm

How to set up and validate locally

Setup

  1. Have the related FF enabled: echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
  2. You'll need an EE License
  3. You'll need to have runners enabled (See $2408961 for setting up a runner)
  4. Import https://gitlab.com/gitlab-examples/security/security-reports
  5. Run a pipeline on master

Validation

  1. Go to the pipeline's security report tab
  2. Set Filter: Tool -> DAST
  3. Click on the finding with the title "X-Frame-Options Header Not Set"
  4. Verify that the code type renders as expected

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 #386159 (closed)

Edited by David Pisek

Merge request reports

Loading