[go: up one dir, main page]

Virtual Registry: Refactor cache purging logic to use a common worker

What does this MR do and why?

This MR consolidates duplicate cache purging logic across Virtual Registries by introducing a common worker class. Previously, both Container and Maven virtual registries had separate but nearly identical MarkEntriesForDestructionWorker classes that performed the same cache entry destruction operations.

What it does:

  • Creates a new shared VirtualRegistries::Cache::MarkEntriesForDestructionWorker that handles cache purging for both Container and Maven virtual registries
  • Updates all upstream models (VirtualRegistries::Container::Upstream and VirtualRegistries::Packages::Maven::Upstream) to use the common worker
  • Changes the worker parameter from upstream ID to Global ID string for polymorphic support
  • The 1st step from the docs guide towards removing the existing package-specific workers.

References

Screenshots or screen recordings

N/A

How to set up and validate locally

Follow these steps: !213785 (merged)

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

Edited by Moaz Khalifa

Merge request reports

Loading