Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16450

Define System Property to control Ajax calls interval

    XMLWordPrintable

Details

    • 0
    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Summary

      Currently Bamboo has a refresh interval of 20 seconds for Ajax calls and does not provide a easy way to manage those events.

      Steps to Reproduce

      1. open up Development panel in your web browser and go to Network section
      2. visit Build Dashboard - http://localhost:8085/allPlans.action
      3. visit Deployment Dashboard - http://localhost:8085/deploy/viewAllDeploymentProjects.action

      Results

      By visiting the two URL from above, you should expected the following requests in a interval of 20s:

      1. http://localhost:8085/rest/api/latest/server?_=1444833915903 (Build Dashboard)
      2. http://localhost:8085/rest/api/latest/deploy/dashboard/?_=1444650761631 (Deployment Dashboard)

      Workaround

      In order to change the interval, please:

      <bamboo-install>/atlassian-bamboo/scripts/bamboo.js
      /*
       * The following property is responsible for http://localhost:8085/allPlans.action interval/refresh
       * please, update '20' to a value (in seconds) you want to have the interval/refresh to happen
       */
      BAMBOO.reloadDashboardTimeout = 20;
      
      <bamboo-install>/atlassian-bamboo/feature/deployment/project/project-list/project-list.js
      /*
       * The following property is responsible for http://localhost:8085/deploy/viewAllDeploymentProjects.action interval/refresh
       * please, update 'delayBeforeUpdate' to a value (in seconds) you want to have the interval/refresh to happen
       */
                  this._timeout = setTimeout(
                      _.bind(this.onUpdate, this),
                      delayBeforeUpdate
                  );
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsperafico Rafael Sperafico (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: