Fix the links generated by the ReviewGroupUser resource

Review Request #8449 — Created Oct. 6, 2016 and submitted

Information

Review Board
release-2.0.x
240000f...

Reviewers

Previously the links generated by the ReviewGroupUser resource
pointed at the UserResource. 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 actual user resource. Unit tests
have been added which ensure the delete links are correct in the
resources.

Ran unit tests.

Description From Last Updated

Missing type and explanation for this.

daviddavid

Needs "Returns"

daviddavid

Needs "Returns"

daviddavid
reviewbot
  1. 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
    
    
  2. 
      
david
  1. 
      
  2. Show all issues

    Missing type and explanation for this.

  3. Show all issues

    Needs "Returns"

  4. Show all issues

    Needs "Returns"

  5. 
      
brennie
reviewbot
  1. 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
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (e05a6b5)