Project

Profile

Help

Task #3950

closed

Tag model

Added by jortel@redhat.com over 5 years ago. Updated about 4 years ago.

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

0%

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

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

Is duplicate of Container Support - Story #3401: Create content models for pulp_docker 4.0CLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Actions #1

Updated by jortel@redhat.com over 5 years ago

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

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #3

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #4

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #5

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #6

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #7

Updated by jortel@redhat.com over 5 years ago

  • Description updated (diff)
Actions #8

Updated by amacdona@redhat.com over 5 years 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.

Actions #9

Updated by amacdona@redhat.com over 5 years ago

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

Updated by amacdona@redhat.com over 5 years ago

  • Is duplicate of Story #3401: Create content models for pulp_docker 4.0 added
Actions #11

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #12

Updated by ipanova@redhat.com over 4 years ago

  • Project changed from Docker Support to Container Support
Actions #13

Updated by ipanova@redhat.com over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #14

Updated by ipanova@redhat.com about 4 years ago

  • Sprint/Milestone set to 1.0.0

Also available in: Atom PDF