Skip to content

Add securityPoliciesSyncUpdated GraphQL subscription

What does this MR do and why?

We are working on visualising the synchronisation status of merge request approval policies in the policy overview UI (#559273 (closed)).

This MR introduces the Redis state and exposes callbacks that will be called from services/workers in !201782 (merged).

References

Screenshots or screen recordings

How to set up and validate locally

Updates can't be tested until !201782 (merged) was merged.

subscription {
  securityPoliciesSyncUpdated(policyConfigurationId: "gid://gitlab/Security::OrchestrationPolicyConfiguration/114") {
    projectsProgress
    projectsTotal
    failedProjects
    mergeRequestsProgress
    mergeRequestsTotal
  }
}

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #528300 (closed)

Edited by Dominic Bauer

Merge request reports

Loading