Update the rendered body text of reviews when the models change.

Review Request #8993 — Created June 4, 2017 and submitted

Information

Review Board
release-3.0.x
5f74791...

Reviewers

The text shown for the body top/bottom fields on a review are no longer
fully static. When an API call is performed and the fields change in the
model, the review will re-render those fields.

To make this work, the ReviewModel resource class now tracks
HTML-rendered fields, along with the Markdown and raw fields, and the
ReviewView ensures that HTML is an included text type in responses. The
view then listens for changes on the raw fields and updates the page
based on the HTML fields.

Unit tests have been added to ensure this all works properly.

Unit tests pass.

Tested along with an in-progress change and saw that the body text had
properly updated on model changes.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (aacc01d)