Fix parent object loading when calling ready() on object chains with new models.

Review Request #3989 — Created March 22, 2013 and submitted

Information

Review Board
master

Reviewers

Fix parent object loading when calling ready() on object chains with new models.

I've been running into an issue where parts of the javascript code create a
review object, then create a comment. The hierarchy here goes RB.ReviewRequest
-> RB.Review -> RB.<comment type>. Calling ready() on the comment will fail
to load the ReviewRequest, which means that the Review won't have a valid url.
Ran js-tests
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
      Ignored Files:
        reviewboard/static/rb/js/models/tests/baseResourceModelTests.js
        reviewboard/static/rb/js/models/baseResourceModel.js
    
    
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (2d8e983).
Loading...