Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Namespace plugin endpoints with Django app label #3836

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

goosemania
Copy link
Member

@pep8speaks
Copy link

pep8speaks commented Jan 21, 2019

Hello @goosemania! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on January 23, 2019 at 21:05 Hours UTC

@goosemania
Copy link
Member Author

@dralley , I'd appreciate your critical look at this PR.

It results in the following (notice name):

^pulp/api/v3/ ^remotes/file/file/$ [name='remotes-file/file-list']
^pulp/api/v3/ ^remotes/file/file\.(?P<format>[a-z0-9]+)/?$ [name='remotes-file/file-list']
^pulp/api/v3/ ^remotes/file/file/(?P<pk>[^/.]+)/$ [name='remotes-file/file-detail']
^pulp/api/v3/ ^remotes/file/file/(?P<pk>[^/.]+)\.(?P<format>[a-z0-9]+)/?$ [name='remotes-file/file-detail']
^pulp/api/v3/ ^remotes/file/file/(?P<pk>[^/.]+)/sync/$ [name='remotes-file/file-sync']
^pulp/api/v3/ ^remotes/file/file/(?P<pk>[^/.]+)/sync\.(?P<format>[a-z0-9]+)/?$ [name='remotes-file/file-sync']
^pulp/api/v3/ ^content/rpm/packages/$ [name='content-rpm/packages-list']
^pulp/api/v3/ ^content/rpm/packages\.(?P<format>[a-z0-9]+)/?$ [name='content-rpm/packages-list']
^pulp/api/v3/ ^content/rpm/packages/(?P<pk>[^/.]+)/$ [name='content-rpm/packages-detail']
^pulp/api/v3/ ^content/rpm/packages/(?P<pk>[^/.]+)\.(?P<format>[a-z0-9]+)/?$ [name='content-rpm/packages-detail'] 

@goosemania
Copy link
Member Author

I'll fix tests and plugins after LGTM on approach here.

@dralley
Copy link
Contributor

dralley commented Jan 21, 2019

@goosemania Approach looks good, LGTM

@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #3836 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3836      +/-   ##
=========================================
+ Coverage   55.57%   55.6%   +0.03%     
=========================================
  Files          66      66              
  Lines        2818    2820       +2     
=========================================
+ Hits         1566    1568       +2     
  Misses       1252    1252
Impacted Files Coverage Δ
pulpcore/app/viewsets/base.py 78.37% <100%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d32f8e...7654d5d. Read the comment docs.

goosemania added a commit to goosemania/pulp_rpm that referenced this pull request Jan 22, 2019
goosemania added a commit to goosemania/pulp_file that referenced this pull request Jan 22, 2019
Copy link
Contributor

@daviddavis daviddavis left a comment

Choose a reason for hiding this comment

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

Had a question. Other than that LGTM.


FILE_REMOTE_PATH = urljoin(BASE_REMOTE_PATH, 'file/')
FILE_CONTENT_PATH = urljoin(CONTENT_PATH, 'files/')
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I understand this change. Shouldn't FILE_CONTENT_PATH still be /pulp/api/v3/content/file/files/ and not /pulp/api/v3/content/files/?

Copy link
Member Author

Choose a reason for hiding this comment

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

@daviddavis , you're right. Thank you!
I was surprised, why tests didn't fail, so after some investigation, I found a problem with installation of pulp_file, so test were skipped. Fixed as well now

@goosemania
Copy link
Member Author

@daviddavis , ready for re-review

goosemania added a commit to goosemania/pulp_docker that referenced this pull request Jan 23, 2019
goosemania added a commit to goosemania/pulp_docker that referenced this pull request Jan 23, 2019
goosemania added a commit to goosemania/pulp_python that referenced this pull request Jan 23, 2019
goosemania added a commit to goosemania/pulp_ansible that referenced this pull request Jan 23, 2019
goosemania added a commit to goosemania/plugin_template that referenced this pull request Jan 23, 2019
goosemania added a commit to goosemania/plugin_template that referenced this pull request Jan 23, 2019
@bmbouter
Copy link
Member

This looks good to me. Thanks for putting this together!

@goosemania goosemania merged commit 240db74 into pulp:master Jan 31, 2019
goosemania added a commit to goosemania/pulp_file that referenced this pull request Jan 31, 2019
goosemania added a commit to goosemania/pulp_rpm that referenced this pull request Jan 31, 2019
rochacbruno added a commit to PulpQE/pulp-qe-tools that referenced this pull request Feb 5, 2019
The PR pulp/pulp#3836 removed the `pulp_`
prefix from app labels.

So commands like `pulp-manager makemigrations pulp_file` are now
`pulp-manager makemigrations file`
nixocio pushed a commit to PulpQE/pulp-qe-tools that referenced this pull request Feb 5, 2019
The PR pulp/pulp#3836 removed the `pulp_`
prefix from app labels.

So commands like `pulp-manager makemigrations pulp_file` are now
`pulp-manager makemigrations file`
goosemania added a commit to goosemania/pulp_ansible that referenced this pull request Feb 25, 2019
daviddavis pushed a commit to daviddavis/pulp_file that referenced this pull request May 14, 2019
daviddavis pushed a commit to daviddavis/plugin_template that referenced this pull request Jul 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
5 participants