Update diffviewer JS to set condensed diff properties
Review Request #7402 — Created June 10, 2015 and submitted
The diffviewer can now set the
condensed_diff
andbase_commit_id
on
individual diff comments in the database. These attributes are piped
from theRB.DiffViewerPageView
all the way to theRB.DiffComment
model.Some methods have been added to the
RB.DiffCommitIndexView
for
determining the currently selected range, if an inter-commit diff is
being displayed, and for determining the "distance" between two commits
(assuming the history is linear).
Made comments on diff commits. Checked the outgoing requests and
incoming responses and verified they were correct.
- Change Summary:
-
Change condensed to cumulative
- Diff:
-
Revision 2 (+159 -33)
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/resources/models/diffCommentModel.js reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/views/textCommentRowSelector.js reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.js reviewboard/static/rb/js/resources/models/reviewModel.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/resources/models/diffCommentModel.js reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/views/textCommentRowSelector.js reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.js reviewboard/static/rb/js/resources/models/reviewModel.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js
- Change Summary:
-
Address David's issues.
- Diff:
-
Revision 3 (+156 -33)
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/resources/models/diffCommentModel.js reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/views/textCommentRowSelector.js reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.js reviewboard/static/rb/js/resources/models/reviewModel.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/resources/models/diffCommentModel.js reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/views/textCommentRowSelector.js reviewboard/static/rb/js/diffviewer/models/diffCommentBlockModel.js reviewboard/static/rb/js/resources/models/reviewModel.js reviewboard/static/rb/js/pages/views/diffViewerPageView.js