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

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

    XMLWordPrintable

Details

    • Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • None
    • API - REST
    • None
    • 23
    • 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.

    Description

      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"
                  }
                ]
              }
            }
      ...

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: