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

Deprecate resources argument of dispatch #1556

Merged
merged 1 commit into from Aug 25, 2021

Conversation

mdellweg
Copy link
Member

@dralley This is based on #1526 but i'll open it for early review now.
If you think this is the way to go i'm happy to assign a ticket to it.

@mdellweg
Copy link
Member Author

At some point we can even write a migration to split the lists of resources in the two list fields in the database.

Copy link
Contributor

@dralley dralley left a comment

Choose a reason for hiding this comment

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

👍

I only reviewed the 2nd commit because I've reviewed the first PR and I assume they're the same. I think the explicitness is helpful, definitely the right way to go. Thanks.

@mdellweg mdellweg force-pushed the exclusive_resources branch 2 times, most recently from e88a452 to f4df722 Compare August 19, 2021 11:44
@pulp pulp deleted a comment from pulpbot Aug 19, 2021
@pulpbot
Copy link
Member

pulpbot commented Aug 19, 2021

Attached issue: https://pulp.plan.io/issues/9257

@mdellweg mdellweg force-pushed the exclusive_resources branch 2 times, most recently from 85281bb to 2eb94ca Compare August 19, 2021 13:13
@mdellweg mdellweg marked this pull request as ready for review August 19, 2021 13:42
@goosemania goosemania self-requested a review August 24, 2021 13:14
@@ -37,7 +37,7 @@ def reclaim(self, request):

task = dispatch(
reclaim_space,
repos,
shared_resources=repos,
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be out of scope of this PR. I think it has nothing to do with the deprecation but it changes the current behaviour. correct?

Copy link
Member Author

@mdellweg mdellweg Aug 25, 2021

Choose a reason for hiding this comment

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

Right, i'll make it a separate PR.
edit: #1574

@@ -195,7 +197,7 @@ def repair(self, request, repository_pk, number):

task = dispatch(
tasks.repository.repair_version,
[version.repository],
shared_resources=[version.repository],
Copy link
Member

Choose a reason for hiding this comment

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

same here

@mdellweg mdellweg merged commit de67d41 into pulp:master Aug 25, 2021
@mdellweg mdellweg deleted the exclusive_resources branch August 25, 2021 11:38
gerrod3 added a commit to gerrod3/pulpcore that referenced this pull request Aug 25, 2021
mdellweg pushed a commit that referenced this pull request Aug 26, 2021
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

4 participants