Fix a cache invalidation issue with Distributions serving publications indirectly via repository_version - #8008
Draft
dralley wants to merge 1 commit into
Draft
Fix a cache invalidation issue with Distributions serving publications indirectly via repository_version#8008dralley wants to merge 1 commit into
dralley wants to merge 1 commit into
Conversation
dralley
force-pushed
the
cache-invalidation-bug
branch
from
August 25, 2026 03:47
fbcdd0c to
d817c09
Compare
dralley
commented
Aug 25, 2026
dralley
force-pushed
the
cache-invalidation-bug
branch
2 times, most recently
from
August 25, 2026 05:00
023e815 to
33db05a
Compare
Contributor
Author
|
Not quite ready for review yet. |
dralley
force-pushed
the
cache-invalidation-bug
branch
from
August 25, 2026 19:25
33db05a to
7fb78f5
Compare
…ions Distributions serving via `repository_version` were missed by cache invalidation and DistributedPublication tracking when publications were created or deleted. Also fixes DistributedPublication to reactivate (clear `expires_at`) when switching back to a recently-superseded publication, instead of creating a duplicate record. closes pulp#7993 Assisted-By: Claude Opus 4.6
dralley
force-pushed
the
cache-invalidation-bug
branch
from
August 25, 2026 21:52
7fb78f5 to
2b2fe3f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure we flush the cache (and update DistributedPublication) for
publications which were indirectly served via
Distribution.repository_version, rather than directly.
closes #7993