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

Populate optional comps.xml unit fields [RHELDST-25995] #226

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

amcmahon-rh
Copy link
Contributor

When pushing comps.xml files, if a unit already exists in Pulp, fields that have been removed from the comps.xml did not get overwritten. This resulted in unexpected older data being published from Pulp.

This change extends the comps.xml parsing by giving an option to fill in all fields in comp unit classes from pulp-rpm. When the data is uploaded into pulp this will overwrite old unwanted data.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (bfaa3eb) to head (5803674).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #226   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           46        46           
  Lines         3224      3257   +33     
=========================================
+ Hits          3224      3257   +33     

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

src/pubtools/pulplib/_impl/comps.py Outdated Show resolved Hide resolved
When pushing comps.xml files, if a unit already exists in Pulp, fields
that have been removed from the comps.xml did not get overwritten. This
resulted in unexpected older data being published from Pulp.

This change extends the comps.xml parsing by giving an option to fill in
all fields in comp unit classes from pulp-rpm. When the data is uploaded
into pulp this will overwrite old unwanted data.
@amcmahon-rh amcmahon-rh merged commit 19569a9 into release-engineering:master Oct 1, 2024
8 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.

2 participants