Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed copy_repo copied all content types when copying only rpms #330

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

rajulkumar
Copy link
Collaborator

copy_repo creates a criteria matching the content_type_id for non-rpm content types. However, in Pulp the type_ids filter with empty type_ids list included all the content types in the result. Hence, the copy-repo copied all the content types when requested only for rpms, as it generated an empty type_ids list for non-rpms. Hence, this adds a check to skip empty type_ids/content_type_id list.

…DST-28235]

copy_repo creates a criteria matching the content_type_id for
non-rpm content types. However, in Pulp the type_ids filter with
empty type_ids list included all the content types in the result.
Hence, the copy-repo copied all the content types when requested
only for rpms, as it generated an empty type_ids list for non-rpms.
Hence, this adds a check to skip empty type_ids/content_type_id list.
@rajulkumar rajulkumar requested a review from rohanpm as a code owner December 23, 2024 20:21
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (49e0556) to head (4212bf1).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #330   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           54        54           
  Lines         3010      3011    +1     
=========================================
+ Hits          3010      3011    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rajulkumar rajulkumar merged commit 1317f6e into release-engineering:master Dec 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant