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

Move sync from model to task #24

Merged
merged 3 commits into from Jan 11, 2018
Merged

Conversation

asmacdo
Copy link
Contributor

@asmacdo asmacdo commented Jan 10, 2018

@jortel
Copy link
Contributor

jortel commented Jan 10, 2018

LGTM

if not importer.feed_url:
raise ValueError(_("An importer must have a 'feed_url' attribute to sync."))

new_version = models.RepositoryVersion(repository=importer.repository)
Copy link
Member

Choose a reason for hiding this comment

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

This needs to occur in a transaction together with adding to task.created_resources

Copy link
Contributor Author

@asmacdo asmacdo Jan 10, 2018

Choose a reason for hiding this comment

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

I implemented this change, but something was broken. To get this PR merged, I've removed this change and created another story.
https://pulp.plan.io/issues/3274

@asmacdo
Copy link
Contributor Author

asmacdo commented Jan 11, 2018

pulp/pulp#3261 (merged to 3.0-dev) is required to GET and serialize the Task with CreatedResource

@daviddavis daviddavis merged commit f3f08b3 into pulp:master Jan 11, 2018
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