Project

Profile

Help

Task #3185

closed

Add a field to Distribution serializer for fully constructed URL to consume content.

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

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

100%

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

Description

Add a base_url field to the Distribution serializer that contains the fully constructed base URL used to consume distributed content. It is not added to the model. The URL is constructed as: <host>/content/<base_path>/. This work was originally planned on #3102 but seemed hard to do and did not want to hold up that work getting merged.


Related issues

Has duplicate Pulp - Story #3677: As a plugin writer, I can easily obtain a distribution's base urlCLOSED - DUPLICATE

Actions
Actions #1

Updated by jortel@redhat.com about 7 years ago

  • Description updated (diff)
Actions #2

Updated by dalley about 7 years ago

  • Subject changed from Add an attirbute to Distribution serializer for fully constructed URL to consume content. to Add an attribute to Distribution serializer for fully constructed URL to consume content.
Actions #3

Updated by jortel@redhat.com about 7 years ago

  • Subject changed from Add an attribute to Distribution serializer for fully constructed URL to consume content. to Add an field to Distribution serializer for fully constructed URL to consume content.
Actions #4

Updated by jortel@redhat.com about 7 years ago

  • Subject changed from Add an field to Distribution serializer for fully constructed URL to consume content. to Add a field to Distribution serializer for fully constructed URL to consume content.
Actions #5

Updated by amacdona@redhat.com about 7 years ago

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

Updated by daviddavis about 7 years ago

  • Sprint/Milestone set to 52
Actions #7

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #8

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST
Actions #9

Updated by rchan almost 7 years ago

  • Sprint/Milestone changed from 52 to 53

Added by dkliban@redhat.com almost 7 years ago

Revision 1200d0b9 | View on GitHub

Problem: Distribution lacks a base URL

Solution: Add 'base_url' field to the Distribution resource

This patch adds a read only 'base_url' field to the Distribution resource. It's value is derived from a new 'host' config in server.yaml and the 'base_path' of the Distribution. If the 'host' is not set, the host is is assumed to be the same the one in the request.

closes #3185 https://pulp.plan.io/issues/3185

Added by dkliban@redhat.com almost 7 years ago

Revision 1200d0b9 | View on GitHub

Problem: Distribution lacks a base URL

Solution: Add 'base_url' field to the Distribution resource

This patch adds a read only 'base_url' field to the Distribution resource. It's value is derived from a new 'host' config in server.yaml and the 'base_path' of the Distribution. If the 'host' is not set, the host is is assumed to be the same the one in the request.

closes #3185 https://pulp.plan.io/issues/3185

Actions #10

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #11

Updated by bmbouter almost 7 years ago

  • Sprint set to Sprint 31
Actions #12

Updated by bmbouter almost 7 years ago

  • Sprint/Milestone deleted (53)
Actions #13

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #14

Updated by amacdona@redhat.com about 6 years ago

  • Has duplicate Story #3677: As a plugin writer, I can easily obtain a distribution's base url added
Actions #15

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #16

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF