Project

Profile

Help

Task #3185

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

Added by jortel@redhat.com almost 2 years ago. Updated 6 months ago.

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

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 31

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

Duplicated by Pulp - Story #3677: As a plugin writer, I can easily obtain a distribution's base url CLOSED - DUPLICATE Actions

Associated revisions

Revision 1200d0b9 View on GitHub
Added by dkliban@redhat.com almost 2 years ago

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

Revision 1200d0b9 View on GitHub
Added by dkliban@redhat.com almost 2 years ago

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

Revision 1200d0b9 View on GitHub
Added by dkliban@redhat.com almost 2 years ago

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

History

#1 Updated by jortel@redhat.com almost 2 years ago

  • Description updated (diff)

#2 Updated by dalley almost 2 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.

#3 Updated by jortel@redhat.com almost 2 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.

#4 Updated by jortel@redhat.com almost 2 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.

#5 Updated by amacdona@redhat.com almost 2 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

#6 Updated by daviddavis almost 2 years ago

  • Sprint/Milestone set to 52

#7 Updated by dkliban@redhat.com almost 2 years ago

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

#8 Updated by dkliban@redhat.com almost 2 years ago

  • Status changed from ASSIGNED to POST

#9 Updated by rchan almost 2 years ago

  • Sprint/Milestone changed from 52 to 53

#10 Updated by dkliban@redhat.com almost 2 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#11 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 31

#12 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (53)

#13 Updated by dkliban@redhat.com over 1 year ago

  • Sprint/Milestone set to 3.0

#14 Updated by amacdona@redhat.com 11 months ago

  • Duplicated by Story #3677: As a plugin writer, I can easily obtain a distribution's base url added

#15 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)

Please register to edit this issue

Also available in: Atom PDF