Skip to content

[PR #7853/4e1a457d backport][3.105] Fix RepositoryVersion.remove_content using wrong queryset for lazy co…#7856

Open
patchback[bot] wants to merge 1 commit into
3.105from
patchback/backports/3.105/4e1a457d92c22d928ef9a5bf00404c3f4e425900/pr-7853
Open

[PR #7853/4e1a457d backport][3.105] Fix RepositoryVersion.remove_content using wrong queryset for lazy co…#7856
patchback[bot] wants to merge 1 commit into
3.105from
patchback/backports/3.105/4e1a457d92c22d928ef9a5bf00404c3f4e425900/pr-7853

Conversation

@patchback

@patchback patchback Bot commented Jul 13, 2026

Copy link
Copy Markdown

This is a backport of PR #7853 as merged into main (4e1a457).

…ntent

The remove_content method was incorrectly using the unfiltered content queryset instead of to_remove when deleting or marking RepositoryContent entries as removed. This caused all content to be removed from the repository version rather than only the specified lazy content.

Fixes: #7851

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

…ntent

The remove_content method was incorrectly using the unfiltered `content`
queryset instead of `to_remove` when deleting or marking
RepositoryContent entries as removed. This caused all content to be
removed from the repository version rather than only the specified lazy
content.

Fixes: #7851

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 4e1a457)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant