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

Property `size` missing in `/2.0/repositories/{team}/{repo}/refs/branches` API response

    XMLWordPrintable

Details

    Description

      Hello!

      I'm the author and maintainer of the Refined Bitbucket browser extension, which for one of its features it's hitting the endpoint mentioned in the title and relying on the .size property to show a badge with the number of open branches in the sidebar.

      About three days ago, the feature broke because the .size property is not being returned anymore. I checked the documentation in the link below and the property is still documented, which leads me to believe that maybe this was a mistake?

      https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/refs/branches

      Also, as you can see from the picture, the pull-requests API endpoint which has a similarly-shaped response wasn't affected.

      Can anyone confirm what happened here? I have about 4,500+ active users in the extension that are seeing this bug at the moment and I would prefer not to have to rollback the feature

      Reference: https://github.com/refined-bitbucket/refined-bitbucket/issues/240

      Attachments

        Issue Links

          Activity

            People

              6995b9ed1710 evzijst
              1b417b18ff56 reyronald
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: