-
Notifications
You must be signed in to change notification settings - Fork 123
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
Publish custom/unknown repository metadata #1440
Conversation
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks good, I just left few small comments.
pulp_rpm/app/tasks/publishing.py
Outdated
self.populate() | ||
self.download_metadata_files() | ||
|
||
def download_metadata_files(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe prepare_metadata_files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the comment from your suggestion: Copies metadata files from the Artifact storage.
class PublicationData: | ||
""" | ||
Encapsulates data relative to publication. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the description of attributes (packages, repomdrecords)
pulp_rpm/app/tasks/publishing.py
Outdated
self.repomdrecords = [] | ||
|
||
self.populate() | ||
self.download_metadata_files() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call those 2 explicitly during publication creation and not here in the init. Less magic during object instantiation and more flexibility later. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
10892b7
to
641ea77
Compare
closes #5432 https://pulp.plan.io/issues/5432 Required PR: pulp#1438 Required PR: pulp#1439
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427 Required PR: pulp#1440
closes #5432
https://pulp.plan.io/issues/5432
Required PR: #1438
Required PR: #1439