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

Indicate that a request for metadata timed out in a REST response

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • API - REST
    • None
    • 21
    • 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.

      Stash does not indicate that a request for metadata timed out in the REST response. Instead, if the request reaches the timeout, that information is excluded from the response.

      The response should indicate that the metadata was attempted to be loaded, but reached the timeout.

      For example, requests to /rest/api/1.0/projects/PROJ/repos/repo/branches?details=true should include the ahead/behind information from com.atlassian.stash.stash-branch-utils:ahead-behind-metadata-provider. If this metadata takes too long, it's not included in the response.

      ...
      "metadata": {
              "com.atlassian.stash.stash-branch-utils:latest-changeset-metadata": {
                "id": "dc82ee974d8dd56ea441a76e661daec3fec0b498",
                "displayId": "dc82ee974d8",
                "author": {
                  "name": "Jeff Thomas",
                  "emailAddress": "",
                  "avatarUrl": ""
                },
                "authorTimestamp": 1429562672000,
                "message": "Adding file to test",
                "parents": [
                  {
                    "id": "42cf7864604b569017bc64dab1609653293c4f39",
                    "displayId": "42cf7864604"
                  }
                ]
              }
            }
      ...

              Unassigned Unassigned
              jethomas Jeff Thomas
              Votes:
              9 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated: