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

Deleting a pull request doesn't delete its public PR refs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.21.0, 7.21.1
    • Pull Requests

    Description

      Issue Summary

      When a PR is opened, BBS creates a public PR ref for the pull request in `$BITBUCKET_HOME/shared/data/repositories/<repo_id>/refs/pull-requests/<pr_id>`. This PR ref is deleted when a PR is declined, but not when the PR is deleted.

      This can cause a build up of stale PR refs in BBS home, which can slow down git commands. 

      Steps to Reproduce

      1. Create a pull request, see that there is a pull request ref for this PR ID
      2. Delete the pull request

      Expected Results

      Pull request ref should be deleted

      Actual Results

      The ref still exists in `$BITBUCKET_HOME/shared/data/repositories/<repo_id>/refs/pull-requests/<pr_id>`

      Workaround

      Manually delete the stale PR ref 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ysun Yingran Sun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: