Project

Profile

Help

Task #2916

closed

Task #2868: Platform support for publishing.

Add Distribution serializer and viewset.

Added by jortel@redhat.com almost 7 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 25
Quarter:

Description

Add Distribution serializer and viewset.

The distribution URL: repositories/<id>/publishers/<id>/distributions/

Additional work may be need to support URL nesting more than 1 level deep.


Related issues

Blocked by Pulp - Task #2893: Add Publication and Distribution models.CLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Actions #1

Updated by bizhang almost 7 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
Actions #2

Updated by mhrivnak over 6 years ago

  • Priority changed from Normal to High
Actions #3

Updated by mhrivnak over 6 years ago

  • Sprint/Milestone set to 42
Actions #4

Updated by jortel@redhat.com over 6 years ago

  • Blocked by Task #2893: Add Publication and Distribution models. added
Actions #5

Updated by bmbouter over 6 years ago

  • Tags deleted (Pulp 3 Modeling)
Actions #6

Updated by mhrivnak over 6 years ago

Having thought more about it, I think the URL nesting might just work. Looking here:

https://github.com/pulp/pulp/blob/f61019e79a/platform/pulpcore/app/urls.py#L24-L26

you would need to create the nested routers in whatever order makes sense and give the correct reference to its parent router.

Actions #7

Updated by mhrivnak over 6 years ago

  • Sprint/Milestone changed from 42 to 43
Actions #8

Updated by jortel@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
Actions #9

Updated by jortel@redhat.com over 6 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (jortel@redhat.com)
Actions #10

Updated by amacdona@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
Actions #11

Updated by jortel@redhat.com over 6 years ago

  • Sprint/Milestone changed from 43 to 44

Added by amacdona@redhat.com over 6 years ago

Revision f32fe304 | View on GitHub

Add Distribution ViewSet and Serializer

Additional work was done to allow arbitrarily deeply nested ViewSets.

The router registration code in urls.py was significantly changed. A ViewSetNode tree is assembled that mirrors the nesting hierarchy of the url structure, and is able to create child routers as necessary and use them to register child ViewSets.

A parent_viewset attribute is added to ViewSets, which indicates how they are nested and assists in the retrieval of parents.

A new type of field, WritableNestedUrlRelatedField was added to allow parent fields to be writable when the parent is determined by the nested url rather than by request parameters (and designated read_only). Serializers with writable url fields inherit from NestedModelSerializer.

Actions #12

Updated by amacdona@redhat.com over 6 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #13

Updated by bmbouter over 6 years ago

  • Tags deleted (Pulp 3 Plugin Writer Alpha)

Cleaning up Redmine tags

Actions #14

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 25
Actions #15

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (44)
Actions #16

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #17

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #18

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF