Update diffviewer JS to set condensed diff properties

Review Request #7402 — Created June 10, 2015 and submitted

Information

Review Board
dvcs

Reviewers

The diffviewer can now set the condensed_diff and base_commit_id on
individual diff comments in the database. These attributes are piped
from the RB.DiffViewerPageView all the way to the RB.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.

Description From Last Updated

You don't need this else case (baseCommitID is initialized to null)

daviddavid

Indent the .stuff only 4 spaces, not 8.

daviddavid

Cumulative should be capitalized.

daviddavid

Cumulative should be capitalized.

daviddavid

"Cumulative" should be capitalized.

daviddavid

Undo this added line.

daviddavid
reviewbot
  1. 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
    
    
  2. 
      
brennie
reviewbot
  1. 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
    
    
  2. 
      
david
  1. 
      
  2. Show all issues

    You don't need this else case (baseCommitID is initialized to null)

  3. Show all issues

    Indent the .stuff only 4 spaces, not 8.

  4. Show all issues

    Cumulative should be capitalized.

  5. Show all issues

    Cumulative should be capitalized.

  6. Show all issues

    "Cumulative" should be capitalized.

  7. Show all issues

    Undo this added line.

  8. 
      
brennie
reviewbot
  1. 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
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to dvcs (43c7313)