Fixing the review_request_updated JSON API

Review Request #802 — Created April 1, 2009 and discarded — Latest diff uploaded

Information

Review Board SVN (deprecated)

Reviewers

The current review_request_updated API determines if a review request has been updated based on the presence of any new reviews on the request.  What it does not take into account is whether or not the review request itself has been updated since last viewed by the user.  For example, a diff could be updated on the review request and the API would return false when in fact the review request has been updated.

This change attempts to fix the API by comparing the last_updated field on the ReviewRequest instance with the last time the user visited the review. 
Tested using a custom Review Board tool that utilizes the JSON API.  Is there a standard way to test JSON API changes?
    Loading...