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

Introducing permissions view. #1635

Merged
merged 2 commits into from Feb 13, 2015
Merged

Conversation

ipanova
Copy link
Member

@ipanova ipanova commented Feb 11, 2015

GET /pulp/api/v2/permissions/ http://fpaste.org/184277/42366756/
GET /pulp/api/v2/permissions for particular resource http://fpaste.org/184276/42366749/
POST /pulp/api/v2/permissions/actions/grant_to_user/ http://fpaste.org/184289/14236692/
POST /pulp/api/v2/permissions/actions/grant_to_role/ http://fpaste.org/184292/36693731/
POST /pulp/api/v2/permissions/actions/revoke_from_role/ http://fpaste.org/184297/69689142/
POST /pulp/api/v2/permissions/actions/revoke_from_user/ http://fpaste.org/184298/23669796/
POST invalid params /pulp/api/v2/permissions/actions/revoke_from_user/ http://fpaste.org/184301/23669940/ (rest of the cases are the same)

@pulpbot
Copy link
Member

pulpbot commented Feb 11, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/147/
Test PASSed.

@pulpbot
Copy link
Member

pulpbot commented Feb 11, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/153/
Test PASSed.

@bmbouter bmbouter self-assigned this Feb 11, 2015
@bmbouter
Copy link
Member

@ipanova I looked at all the fpastes and they all look good except for this one: http://fpaste.org/184301/23669940/

This one seems to have the same extra slash problem with _href similar to the other code that uses that redirect helper function. Fixing it in the helper function would probably be good so that one fix fixes all of these cases.

@bmbouter
Copy link
Member

flake8 looks good, test coverage is 100% and they pass on all platforms.


:param request: WSGI request object
:type request: django.core.handlers.wsgi.WSGIRequest
:return: Response containing a list of permissions for resource/s
Copy link
Member

Choose a reason for hiding this comment

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

I'll suggest an extra line of whitespace between the return params (:return, :rtype) and the argument params for readability. Not required, but a stylistic suggestion.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@bmbouter
Copy link
Member

The tests look like the mock things well, good job.

@bmbouter
Copy link
Member

@ipanova I'm done with this so I am assigning it back to you. The only issue that really needs fixing is the extra-slash regression issue.

@ipanova
Copy link
Member Author

ipanova commented Feb 12, 2015

@bmbouter I looked closer to the extra slash issue - seems like that in the curl I provided url with extra slash. So the problem is not in the redirect helper function, because here i do not even use it, but in the typo during the input. Here the right example http://fpaste.org/184587/14237336/

@pulpbot
Copy link
Member

pulpbot commented Feb 12, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/161/
Test PASSed.

@pulpbot
Copy link
Member

pulpbot commented Feb 13, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/185/
Test PASSed.

@ipanova
Copy link
Member Author

ipanova commented Feb 13, 2015

ok test

@pulpbot
Copy link
Member

pulpbot commented Feb 13, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/186/
Test PASSed.

@ipanova ipanova merged commit 6e9d4e7 into pulp:master Feb 13, 2015
pcreech added a commit to pcreech/pulp that referenced this pull request Feb 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants