Story #3209: As a user, I have Repository Versions
As a user, the task created by sync includes the RepositoryVersion created_resource
This came up as part of the work to move the sync task to the plugin:
In a transaction, the sync task needs to instantiate and save a Repository Version, and instantiate and save a CreatedResource(content_object=repo_version).
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 : cr = CreatedResource.objects.get(pk="8b34d83c-d4f4-43c4-8311-f38311bb1c48") In : cr Out: <CreatedResource: pk=8b34d83c-d4f4-43c4-8311-f38311bb1c48> In : cr.content_object is None Out: True
#1 Updated by email@example.com over 2 years ago
- Status changed from NEW to MODIFIED
- Assignee set to firstname.lastname@example.org
This turned out to be a bug and was fixed as part of https://pulp.plan.io/issues/3260
Please register to edit this issue