Task #3185
closed
Add a field to Distribution serializer for fully constructed URL to consume content.
Status:
CLOSED - CURRENTRELEASE
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.
- Description updated (diff)
- 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.
- 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.
- 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.
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
- Sprint/Milestone set to 52
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
- Status changed from ASSIGNED to POST
- Sprint/Milestone changed from 52 to 53
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Sprint/Milestone deleted (
53)
- Sprint/Milestone set to 3.0.0
- Has duplicate Story #3677: As a plugin writer, I can easily obtain a distribution's base url added
- Tags deleted (
Pulp 3, Pulp 3 MVP)
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
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