Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11858

Comment on first context line moves to comment on first added line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 7.0.0
    • None
    • None
    • None

    Description

      Steps to Reproduce

      1. Create a branch
      2. Add some lines at the top of a file (1 or more)
      3. Push the branch
      4. Create a pull request with the branch as source
      5. Comment on the first line in the file on the PR (which should be an added line)
      6. Switch to side-by-side diff
      7. Comment on the first context line in the file on the TO side of the file (the right-hand-side)
      8. Refresh the page

      Expected Results

      The comment on the first context line should show on the first context line

      Actual Results

      The comment on the context line will jump to the first line

      Notes

      See the attached video: comment-jumps-line.mp4

      There's even stranger behaviour if you add multiple lines to the top of the file: comment-jumps-comment.mp4 The comment on the first context line will always jump to the comment on the first line, even if there are other comments between them.

      This requires there being a comment on the first line of the file. If there's not, this won't happen.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        1. After.png
          After.png
          110 kB
        2. Before.png
          Before.png
          121 kB
        3. comment-jumps-comment.mp4
          176 kB
        4. comment-jumps-line.mp4
          240 kB

        Activity

          People

            Unassigned Unassigned
            bplump Brent P
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: