Skip to content

Do not display security widget when pipeline is active

Savas Vedova requested to merge 371868-poll-only-when-needed into master

What does this MR do and why?

When the pipeline is still running, there's no need to poll security reports. This MR fixes that behaviour.

Screenshots or screen recordings

before after
image image

How to set up and validate locally

  1. Fork https://gitlab.com/gitlab-examples/security/security-reports/
  2. Enable feature flag: refactor_security_extension
  3. Create an MR
  4. Go the MR page
  5. You shouldn't see the Security Reports loading message when the pipeline is still running.

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

Merge request reports