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

Kickstart Models #1418

Merged
merged 1 commit into from Sep 2, 2019
Merged

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Aug 19, 2019

Kickstarts
Create the model(s) for distribution trees
closes #5201

pulp_rpm/app/models.py Outdated Show resolved Hide resolved
pulp_rpm/app/models.py Outdated Show resolved Hide resolved
@fao89 fao89 force-pushed the 5201-distribution-tree-model branch 6 times, most recently from 8e52848 to 9cd3ad5 Compare August 20, 2019 16:12
pulp_rpm/app/models.py Outdated Show resolved Hide resolved
pulp_rpm/app/models.py Outdated Show resolved Hide resolved
pulp_rpm/app/models.py Outdated Show resolved Hide resolved
pulp_rpm/app/models.py Outdated Show resolved Hide resolved
@fao89 fao89 force-pushed the 5201-distribution-tree-model branch from 9cd3ad5 to a80cefe Compare August 20, 2019 20:51
@fao89 fao89 changed the title WIP - Create the model(s) for distribution trees Create the model(s) for distribution trees Aug 20, 2019
@fao89 fao89 force-pushed the 5201-distribution-tree-model branch from a80cefe to b81e740 Compare August 21, 2019 13:51
@fao89 fao89 requested a review from a team August 21, 2019 22:02
@pep8speaks
Copy link

pep8speaks commented Aug 21, 2019

Hello @fabricio-aguiar! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-09-02 16:45:58 UTC

@fao89 fao89 force-pushed the 5201-distribution-tree-model branch 3 times, most recently from 3c2068b to d38f0fc Compare August 22, 2019 22:12
self.assertIsNone(repo['_latest_version_href'])
sync(self.cfg, remote, repo)
repo = self.client.get(repo['_href'])
import pdb; pdb.set_trace()
Copy link

Choose a reason for hiding this comment

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

Suggested change
import pdb; pdb.set_trace()

Copy link
Member Author

Choose a reason for hiding this comment

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

It still on development, and at the end of the day I push everything as is, just to send on scrum status

@@ -100,6 +101,65 @@ def test_rpm(self):
)
self.assertDictEqual(get_added_content_summary(repo), {})

def test_rpm_kickstart(self):
"""Sync repositories with the rpm plugin.
Copy link

Choose a reason for hiding this comment

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

It would be nice to update docstring with the related issue.

        This test targets the following issue:


        `Pulp #5201 <https://pulp.plan.io/issues/5201>`_

@fao89 fao89 changed the title Create the model(s) for distribution trees WIP - Create the model(s) for distribution trees Aug 23, 2019
@fao89 fao89 force-pushed the 5201-distribution-tree-model branch from d38f0fc to 6c1fb1e Compare August 23, 2019 18:20
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
DistributionTree, on_delete=models.CASCADE, related_name='addons'
)
repository = models.ForeignKey(
Repository, on_delete=models.CASCADE, related_name='addons'
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs to be on_delete=models.PROTECT because we can't allow the user to delete a repo that is still backing DistributionTree units in Pulp. Does this make sense?

DistributionTree, on_delete=models.CASCADE, related_name='variants'
)
repository = models.ForeignKey(
Repository, on_delete=models.CASCADE, related_name='+'
Copy link
Member

Choose a reason for hiding this comment

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

Similar here with the PROTECT. @fabricio-aguiar what do you think?

@fao89 fao89 force-pushed the 5201-distribution-tree-model branch from 3eeba0f to d9591bd Compare September 2, 2019 16:45
Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

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

@fabricio-aguiar Thank you so much for making this. After your last round of fixes this looks good to me. 👍

@bmbouter bmbouter merged commit 380d4c8 into pulp:master Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 2, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 3, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 3, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 3, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 4, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 4, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 4, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 4, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 4, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 5, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 5, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 10, 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
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

7 participants