Fix the links generated by the ReviewGroupUser resource
Review Request #8449 — Created Oct. 6, 2016 and submitted
Previously the links generated by the
ReviewGroupUser
resource
pointed at theUserResource
. In other words, the delete link for the
ReviewGroupUser
resource would actually be the delete link for the
UserResource
and using it would result in the deletion of the user,
not the removal from review group. This was because these resources
shared a name (user
) and as such, the lookups for URL names were
incorrect.Now we correctly generate the links for the
ReviewGroupUser
resource.
We have added a related link to the actualuser
resource. Unit tests
have been added which ensure the delete links are correct in the
resources.
Ran unit tests.
- Change Summary:
-
Addressed David's issues
- Commit:
-
ee896e3b8d998f2d789975e73dbdb9ab99e90786240000fea8f30178848870da9dfd12c9d5b0e84d
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/review_group_user.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_review_group_user.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/review_group_user.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/tests/test_review_group_user.py