Skip to content

Fetch reports from V2

What does this MR do and why?

This MR fetches reports from the newly-introduced V2 endpoints. These endpoints return the non-cached state property for findings. We will have to use the securityReportFinding query in GraphQL to fetch feedback objects when the finding is opened through a modal, but I'll work on that in a separate MR.

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

  1. Enable feature flag: :refactor_security_extension
  2. Fork https://gitlab.com/gitlab-examples/security/security-reports
  3. Create a new MR by modifying a file
  4. Visit the MR page and check that the security reports load as expected.

Clicking on a finding will open a mostly empty modal. This is a known-issue that will be fixed in a separate MR.

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

Merge request reports