Diff view may hide some changes in the Pull Request
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
In a Pull Request that includes many changes in a file (e.g., 200+ lines changed), using the Find function of the Diff view may hide several last lines that have changed.
For example:
Create a Pull Request where 200 lines have been added to a file
Open the Pull Request and switch to the Diff view
Scroll all the way down and note that all 200 added lines are shown
Click on one of the green lines, then use Ctrl+F (or Command+F) to display the Find: field
Type some search string in the Find field (e.g., Test) and click the Next match and Previous match buttons several times
Scroll all the way down and note that a few last lines are no longer shown
(in some cases you may need to scroll up and down a few times before the problem occurs)
As result, reviewers may not see some of the suggested changes in the Pull Request, and merge or reject the Pull Request without a complete code review.
Diagnosis
Environment
This issue has been reproduced against several versions of Bitbucket Server, using Firefox versions 69 and 70 on Ubuntu Linux 18.04 and on Mac OS X 10.14.6.
The problem did not occur in a Pull Request with 160 lines of text (or fewer) have been changed.
Cause
This has been raised as a Bitbucket bug BSERV-11000 - Search Bar hides the last few lines of the source view / BSERV-10774 - Cannot see the end of a file when search is opened on source view
Workaround
Resizing the browser window, or re-entering the Pull Request, should show the entire Diff again.
However, the reviewers may not always realise that they are missing some lines.