Project

Profile

Help

Story #3274

Story #3209: As a user, I have Repository Versions

As a user, the task created by sync includes the RepositoryVersion created_resource

Added by amacdona@redhat.com almost 2 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 31

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

History

#1 Updated by amacdona@redhat.com over 1 year ago

  • Status changed from NEW to MODIFIED
  • Assignee set to amacdona@redhat.com

#2 Updated by amacdona@redhat.com over 1 year ago

  • Parent task set to #3209
  • Tags Pulp 3 added

#3 Updated by amacdona@redhat.com over 1 year ago

  • % Done changed from 0 to 100

#4 Updated by amacdona@redhat.com over 1 year ago

  • Sprint/Milestone set to 53

#5 Updated by daviddavis over 1 year ago

  • Smash Test set to 876

#6 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 31

#7 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (53)

#8 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#9 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF