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

Publish custom/unknown repository metadata #1440

Merged
merged 1 commit into from
Sep 16, 2019
Merged

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Sep 11, 2019

closes #5432
https://pulp.plan.io/issues/5432
Required PR: #1438
Required PR: #1439

@fao89 fao89 changed the title WIP - Publish custom/unknown repository metadata Publish custom/unknown repository metadata Sep 12, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 12, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 13, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
Copy link
Member

@goosemania goosemania left a 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.

self.populate()
self.download_metadata_files()

def download_metadata_files(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe prepare_metadata_files?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good to me

Copy link
Member

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.

Copy link
Member

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)

self.repomdrecords = []

self.populate()
self.download_metadata_files()
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

Copy link
Member

@goosemania goosemania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@daviddavis daviddavis merged commit 0a0117a into pulp:master Sep 16, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 16, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 16, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 17, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 17, 2019
closes #5206
https://pulp.plan.io/issues/5206
Required PR: pulp#1418
Required PR: pulp#1427
Required PR: pulp#1440
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.

None yet

3 participants