Project

Profile

Help

Task #3950

Tag model

Added by jortel@redhat.com about 1 year ago. Updated 7 months ago.

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

0%

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

Description

Create the Tag model.

Tag(Content):
  • name CharField(255)
  • manifest ForeignKey(Manifest, null=True, related_name='tags', on_delete=CASCADE)
  • manifest_list ForeignKey(ManifestList, null=True, related_name='tags', on_delete=CASCADE)

unique_together = (name, manifest)
unique_together = (name, manifest_list)

Design assumptions:

  • Pre-save validation on the model ensures that one-of but not both manifest and manifest_list are set.
  • Tag name uniqueness and referential integrity{1} will be enforced by the plugin. During sync, this happens in the task logic. For content add/remove API calls, this happens in the (docker specific) view. Both can re-use the same code.

[1] Tag referential integrity is ensuring that when a manifest or manifest_list is removed from a repository, referencing tags are also removed. Also, when a tag is added to a repository, referenced manifest or manifest_list are also added.


Related issues

Duplicates Docker Support - Story #3401: Create content models for pulp_docker 4.0 MODIFIED Actions

History

#1 Updated by jortel@redhat.com about 1 year ago

  • Blocked by Story #3401: Create content models for pulp_docker 4.0 added

#2 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#3 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#4 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#5 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#6 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#7 Updated by jortel@redhat.com about 1 year ago

  • Description updated (diff)

#8 Updated by amacdona@redhat.com 12 months ago

  • Status changed from NEW to MODIFIED

Moved to MODIFIED since there is no "closed" for tasks. This one duplicates https://pulp.plan.io/issues/3401, which ended up also covering tags.

#9 Updated by amacdona@redhat.com 12 months ago

  • Blocked by deleted (Story #3401: Create content models for pulp_docker 4.0)

#10 Updated by amacdona@redhat.com 12 months ago

  • Duplicates Story #3401: Create content models for pulp_docker 4.0 added

#11 Updated by bmbouter 7 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF