Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13446

PR's approval UI is not properly updated via REST API while using "Reset approvals" feature

    XMLWordPrintable

Details

    Description

      Summary

      While trying to approve a PR using REST API with "Reset approvals when the source branch of a pull request is modified" is enabled on Branch Permission, the PR's approval UI is not updated.

      ###Steps to Reproduce

      1. Create Branch Permission with the below option checked:
      • Require at least (1) approval
      • Reset approvals when the source branch of a pull request is modified
      1. Create a pull request
      2. Use Bitbucket API to Approve PR
      #!bash
      curl -iX POST -u "$user:$Password" &#x27;https://api.bitbucket.org/2.0/repositories/<User>/<Repo>/pullrequests/<PRNumber>/approve
      
      1. Refresh the PR page – approval is not displayed
      2. Uncheck the "Reset approvals when the....." in the branch permission
      3. Refresh the PR page – approval is displayed

      ###Expected Results
      PR approval UI is updated after the Bitbucket API request is send

      ###Actual Results
      Curl output shows the PR is already approved, but there're no changes on PR UI

      Attachments

        1. 3599808308-ApproveUI.gif
          3599808308-ApproveUI.gif
          1014 kB
        2. ApproveUIHighRes.gif
          ApproveUIHighRes.gif
          2.02 MB

        Activity

          People

            achhabra@atlassian.com Abhin Chhabra (Inactive)
            rchia Ronald C.
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: