Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce BASE_CONTENT_GUARD_PATH #1193

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

bmbouter
Copy link
Member

There is an existing constant called CONTENT_GUARD_PATH which includes
plugin-specific portions to its URL. This changes the name to indicate
it's only a BASE path and includes only the URL portions that are
specified by core.

The corresponding viewset comes from here: https://github.com/pulp/pulpcore/blob/7fdc5626559051e540509f7b699c28684e1043a9/pulpcore/app/viewsets/publication.py#L49

@bmbouter
Copy link
Member Author

Or maybe it should be s/CONTENT_GUARDS_BASE_PATH/CONTENT_GUARDS_PATH/ just lmk

@@ -16,7 +16,7 @@

BASE_PUBLISHER_PATH = urljoin(BASE_PATH, "publishers/")

CONTENT_GUARDS_PATH = urljoin(BASE_PATH, "contentguards/certguard/certguard/")
CONTENT_GUARDS_BASE_PATH = urljoin(BASE_PATH, "contentguards/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CONTENT_GUARDS_BASE_PATH = urljoin(BASE_PATH, "contentguards/")
BASE_CONTENT_GUARDS_PATH = urljoin(BASE_PATH, "contentguards/")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this, this is more consistent with what is here.

There is an existing constant called CONTENT_GUARD_PATH which includes
plugin-specific portions to its URL. This changes the name to indicate
it's only a BASE path and includes only the URL portions that are
specified by core.

The corresponding viewset comes from here: https://github.com/pulp/pulpcore/blob/7fdc5626559051e540509f7b699c28684e1043a9/pulpcore/app/viewsets/publication.py#L49
@bmbouter bmbouter force-pushed the update-content-guard-base-path branch from dd7f9cf to 4c29e37 Compare March 29, 2019 14:15
@bmbouter bmbouter changed the title Introduce CONTENT_GUARD_BASE_PATH Introduce BASE_CONTENT_GUARD_PATH Mar 29, 2019
@rochacbruno rochacbruno merged commit c9e3649 into pulp:master Mar 29, 2019
@bmbouter bmbouter deleted the update-content-guard-base-path branch March 29, 2019 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants