Fix repair metadata repo version#396
Merged
Merged
Conversation
Skip _generate_metadata in finalize_new_version during repair_metadata using the existing _pull_through_ctx mechanism, since repair_metadata already manages all metadata content itself. Also make the stale metadata removal and addition defensive against duplicate content, and use all fields in the _create_metadata_content IntegrityError handler. Fixes: pulp#395 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove metadata for (group_id, artifact_id) pairs that no longer have any MavenArtifact in the repository. Previously repair_metadata returned early when no artifacts existed and only cleaned up version=None metadata, leaving version-level and fully orphaned metadata behind. Fixes: pulp#394 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9ca0cf7 to
f45ef91
Compare
Backport to 0.21: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply ff7f82b on top of patchback/backports/0.21/ff7f82bd5761e3b64f08fbcbdb654c0584b9d2c5/pr-396 Backporting merged PR #396 into main
🤖 @patchback |
Backport to 0.21: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply ff7f82b on top of patchback/backports/0.21/ff7f82bd5761e3b64f08fbcbdb654c0584b9d2c5/pr-396 Backporting merged PR #396 into main
🤖 @patchback |
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.
fixes:
#394
#395
📜 Checklist
See: Pull Request Walkthrough