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

During Pull Request Rescoping, only update the SCM refs for pull requests that had their 'from-ref' changed

XMLWordPrintable

    • 3
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Current behavior

      Pull request rescoping updates the Git refs of all pull requests affected in a rescope operation. While updating each pull request's refs, a cluster-level lock for the pull request has to be acquired. This lock is also acquired for various other operations and can delay rescope processing.

      Suggested improvement

      Bitbucket only tracks the 'from-ref' of a pull request in Git, the 'to-ref' is not stored. Updating the pull request refs could be limited to only those pull requests that had their 'from-ref' updated.

      Most large rescope operations occur when the default branch of a repository has been updated. Under the assumption that most pull requests in a repository target the default branch, as in, their 'to-ref' points to the default branch, a large portion of those pull requests could be rescoped without having to update their refs and therefore avoid cluster wide locking.

            wkritzinger Wolfgang Kritzinger
            wkritzinger Wolfgang Kritzinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: