← Back to Dashboard
Verified Production Fix

[gitlab-org/gitlab] Skip license compliance polling while MR pipeline is active

GL-gitlab-org/gitlab#592616 • Mar 08, 2026

### ROOT CAUSE The `LicenseComplianceProvider` currently starts fetching license compliance data immediately on mount, regardless of whether the MR pipeline is still running. This leads to unnecessary polling requests and a less informative loading state compared to the `SecurityScansProvider`, which checks if the pipeline is active and skips fetching or shows a more informative message. ### CODE FIX To address this issue, we need to add the same `isPipelineActive` check to the `LicenseComplianceProvider` to defer fetching data until the pipeline is complete. Additionally, we will provide a computed `loadingMessage` to display an informative message when the pipeline is active. Here is the proposed fix: 1. **Add `isPipelineActive` check in `license_compliance_provider.vue`:**
vue





2. **Provide the `loadingMessage` to consuming components:**

If the `LicenseComplianceProvider` is used in a parent component, the parent component can access the `loadingMessage` and display it accordingly.

vue





By implementing these changes, the `LicenseComplianceProvider` will defer fetching data until the pipeline is complete, reducing unnecessary polling requests and providing a more informative loading message. This aligns the behavior with the `SecurityScansProvider` for consistency.

Deploy with Vultr

Use this fix in production instantly. Claim your high-performance developer credit.

Get Started with Vultr →