Skip to content

Pipeline modal: Fetch finding via GraphQL

What does this MR do and why?

It adds a GraphQL fetch to the new vulnerability-finding modal. This includes the rendering of the received data, a loading screen and error alert.

Screenshots or screen recordings

state screenshot
loading Screenshot_2022-12-12_at_5.15.23_pm
success Screenshot_2022-12-12_at_5.15.39_pm
error Screenshot_2022-12-12_at_5.17.05_pm

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable the related feature flag: echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
  2. Navigate to a pipeline with security findings
  3. Click the "Security" tab
  4. Click on a finding to open the modal
  5. Verify that the loading indicator shows
  6. Simulate being offline via devtools
  7. Click on a finding
  8. Verify that the error alert is showing

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

Edited by David Pisek

Merge request reports

Loading