Story #3274
closedStory #3209: As a user, I have Repository Versions
As a user, the task created by sync includes the RepositoryVersion created_resource
100%
Description
This came up as part of the work to move the sync task to the plugin:
https://github.com/pulp/pulp_file/pull/24/files#r160791272
In a transaction, the sync task needs to instantiate and save a Repository Version, and instantiate and save a CreatedResource(content_object=repo_version).
Hints:
This didn't work as expected, so I decided to not to do this story as part of https://pulp.plan.io/issues/3260
After the CreatedResource was saved to the db, the instance contained the expected attribute, content_object, but the saved object in the db did not have that attribute.
From: django shell
In [7]: cr = CreatedResource.objects.get(pk="8b34d83c-d4f4-43c4-8311-f38311bb1c48")
In [8]: cr
Out[8]: <CreatedResource: pk=8b34d83c-d4f4-43c4-8311-f38311bb1c48>
In [9]: cr.content_object is None
Out[9]: True
Updated by amacdona@redhat.com almost 7 years ago
- Status changed from NEW to MODIFIED
- Assignee set to amacdona@redhat.com
This turned out to be a bug and was fixed as part of https://pulp.plan.io/issues/3260
https://github.com/pulp/pulp_file/pull/24/files#diff-7eb1d86b5a920434e88b81972c0c1411R72
Updated by amacdona@redhat.com almost 7 years ago
- Parent issue set to #3209
- Tags Pulp 3 added
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE