-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.17.0, 7.21.0
-
1
-
Severity 3 - Minor
-
1
-
Issue Summary
Repeated switching of the src and dest branch on the Compare page (${bitbucket.URL}/projects/<project>/repos/<repo-slug>/compare) in the Bitbucket UI gives incorrect diff or no diff after some time. This doesn't happen immediately and requires changing the inputs in succession multiple times.
Steps to Reproduce (in Data Center and Server)
- Go to Compare view in the Repository: (${bitbucket.URL}/projects/<project>/repos/<repo-slug>/compare)
- Select a source and a destination branch. The UI will will list the diff between the two branches
- Now keep switching src and dest branch direction repeatedly or keep changing the inputs multiple times.
Expected Results
The UI should show the correct diff at all times.
Actual Results
After repeated switching/changing inputs, the UI will sometimes show incorrect diffs or indicate that there are no changes. It appears the UI falls behind the async requests for diffs due to repeated switching.
Workaround
Reloading the entire page will show the correct diff again.