Skip to content

Check license before package metadata sync

Igor Frenkel requested to merge 396737-check-pm-sync-worker-allowed-to-run into master

What does this MR do and why?

This MR ensures that the PackageMetadata::Syncworker runs based on whether the feature is available for the user's license.

Because the worker executes at the instance level this logic checks the instance's license for feature availability.

Quoting the issue:

According to the license model self-managed subscriptions are installed at an instance level and GitLab SaaS is a special self-managed instance that is Ultimate. So it should be enough to check whether the license_scanning feature is available.

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

Edited by Igor Frenkel

Merge request reports

Loading