Use the new close_description field when working with close descriptions.
Review Request #6424 — Created Oct. 9, 2014 and submitted — Latest diff uploaded
Now that we have a new, improved field for specifying close descriptions
on a review request, it's time to make use of it in the UI, along with
cleaning up the code surrounding it.The code dealing with "changeDescription" has been split up a bit to
work with either "changeDescription" or "closeDescription," and to look
in the ReviewRequest or DraftReviewRequest, depending on the field.This also helps set up for bits of the new server-side Markdown change.
Edited draft change descriptions and close descriptions.
Unit tests all pass.
Diff Revision 2 (Latest)
orig
1
2
reviewboard/static/rb/js/models/reviewRequestEditorModel.js |
---|
reviewboard/static/rb/js/models/tests/reviewRequestEditorModelTests.js |
---|
reviewboard/static/rb/js/resources/models/reviewRequestModel.js |
---|
reviewboard/static/rb/js/resources/models/tests/reviewRequestModelTests.js |
---|
reviewboard/static/rb/js/views/reviewRequestEditorView.js |
---|
reviewboard/static/rb/js/views/tests/reviewRequestEditorViewTests.js |
---|
reviewboard/templates/reviews/reviewable_page_data.js |
---|