Fix links for the hosting service accounts resource.

Review Request #7119 — Created March 25, 2015 and submitted

Information

Review Board
release-2.5.x
62ef58d...

Reviewers

The get_links method for the HostingServiceResource wasn't plumbing the local
site name correctly, which broke a couple unit tests (and also would return the
wrong links when local sites were present). This changes it to use the local
site name attached to the request, rather than expecting (incorrectly) for it
to be present in the kwargs.

Ran unit tests. Saw that none of them failed.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/hosting_service.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/hosting_service.py
    
    
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (10bce95)
Loading...