Skip to content

Fix recursive add/remove M2M queries avoiding values_list()#2407

Draft
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:fix-recursive-values-list-460
Draft

Fix recursive add/remove M2M queries avoiding values_list()#2407
gerrod3 wants to merge 1 commit into
pulp:mainfrom
gerrod3:fix-recursive-values-list-460

Conversation

@gerrod3

@gerrod3 gerrod3 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace values_list() on listed_manifests and blobs with through-model queries in recursive add/remove.
  • Add unit tests that recursively add/remove multiple manifest lists and their related content.

Test plan

  • oci-env test -p pulp_container unit -k TestRecursiveM2MQueries
  • Functional recursive add/remove tests (CI)

Fixes #460
Ref: https://redhat.atlassian.net/browse/PULP-2046

Made with Cursor

Replace values_list() on listed_manifests and blobs with through-model
queries so recursive add/remove resolves the correct related content.

Fixes pulp#460

Co-authored-by: Cursor <cursoragent@cursor.com>
@gerrod3
gerrod3 marked this pull request as draft July 15, 2026 19:33
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.

Ensure recursive add and remove is not impacted by values_list()

1 participant