Allow overriding of the ID attribute in JavaScript API resource URLs.

Review Request #5609 — Created March 10, 2014 and submitted

Information

Review Board
release-2.0.x
b8064a9...

Reviewers

When computing the URL of a resource, we assumed the object's standard
ID was used to represent that resource in the URL. This isn't always the
case, such as for users and groups.

Resources can now set 'urlIDAttr' to a value representing the attribute
that contains the ID used for the URL.

Made use of this in the new RBCommons ports. It fetched the correct URL.

Other API calls work fine.

Unit tests pass.

david
  1. Ship It!

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...