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

Repeated and successive switching of src and dest branch in the Compare view sometimes gives wrong diff

XMLWordPrintable

      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.

        1. kmahesh_screenrecording.mp4
          2.76 MB
          Karthik Mahesh

              Unassigned Unassigned
              ce91f45cf510 Karthik Mahesh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: