Skip to content

Add toggle for continuous vulnerability scans

Dheeraj Joshi requested to merge djadmin-security-config-cvs into master

Related issue: #423903 (closed)

What does this MR do and why?

  • Add component to render the toggle
  • Add Experiment badge
  • Add link to testing agreement
  • Add feature flag check on the frontend (#419550 (closed))
  • Consume toggle value from the presenter, dependent on !131315 (merged)
  • Add GraphQL mutation for toggle, dependent on !131450 (merged)
  • Add error handling
  • Add test cases

Screenshots or screen recordings

  1. When feature flag is disabled (no visual changes)

image

  1. When feature flag is enabled but dependency scanning is not configured

image

  1. When feature flag is enabled and dependency scanning is configured

image

  1. Error alert image

How to set up and validate locally

  1. Visit security configuration page at http://127.0.0.1:3000/flightjs/Flight/-/security/configuration/?tab=security-testing
  2. The toggle will only be visible when dependency_scanning_on_advisory_ingestion is true
  3. The toggle should trigger a graphql mutation

MR acceptance checklist

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

Edited by Dheeraj Joshi

Merge request reports