Project

Profile

Help

Story #3274

closed

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 about 6 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 31
Quarter:

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
Actions #1

Updated by amacdona@redhat.com about 6 years ago

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

Updated by amacdona@redhat.com about 6 years ago

  • Parent issue set to #3209
  • Tags Pulp 3 added
Actions #3

Updated by amacdona@redhat.com about 6 years ago

  • % Done changed from 0 to 100
Actions #4

Updated by amacdona@redhat.com about 6 years ago

  • Sprint/Milestone set to 53
Actions #6

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 31
Actions #7

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (53)
Actions #8

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #9

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #10

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF