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
Kickstart Models #1418
Conversation
8e52848
to
9cd3ad5
Compare
9cd3ad5
to
a80cefe
Compare
a80cefe
to
b81e740
Compare
|
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 |
3c2068b
to
d38f0fc
Compare
| self.assertIsNone(repo['_latest_version_href']) | ||
| sync(self.cfg, remote, repo) | ||
| repo = self.client.get(repo['_href']) | ||
| import pdb; pdb.set_trace() |
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.
| import pdb; pdb.set_trace() |
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.
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. | |||
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.
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>`_d38f0fc
to
6c1fb1e
Compare
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
pulp_rpm/app/models.py
Outdated
| DistributionTree, on_delete=models.CASCADE, related_name='addons' | ||
| ) | ||
| repository = models.ForeignKey( | ||
| Repository, on_delete=models.CASCADE, related_name='addons' |
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 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?
pulp_rpm/app/models.py
Outdated
| DistributionTree, on_delete=models.CASCADE, related_name='variants' | ||
| ) | ||
| repository = models.ForeignKey( | ||
| Repository, on_delete=models.CASCADE, related_name='+' |
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.
Similar here with the PROTECT. @fabricio-aguiar what do you think?
closes #5201 https://pulp.plan.io/issues/5201
3eeba0f
to
d9591bd
Compare
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.
@fabricio-aguiar Thank you so much for making this. After your last round of fixes this looks good to me. 👍
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5202 https://pulp.plan.io/issues/5202 Required PR: pulp#1418
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
closes #5206 https://pulp.plan.io/issues/5206 Required PR: pulp#1418 Required PR: pulp#1427
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 #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
Kickstarts
Create the model(s) for distribution trees
closes #5201