ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonenko Alexander (JIRA)" <>
Subject [jira] [Created] (AMBARI-8310) Ambari Web: convert non-async AJAX calls to async
Date Thu, 13 Nov 2014 16:04:35 GMT
Antonenko Alexander created AMBARI-8310:

             Summary: Ambari Web: convert non-async AJAX calls to async
                 Key: AMBARI-8310
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 1.7.0
            Reporter: Antonenko Alexander
            Assignee: Antonenko Alexander
            Priority: Critical
             Fix For: 2.0.0

We removed most of non-async calls, but there's a few that still need to be converted.
Non-async calls are problematic.  If the request is not satisfied for whatever reason - say
wifi drops, it completely blocks the browser tab (you cannot even close the browser tab in

  loadServiceComponents: function () {
    return App.ajax.send({
      name: 'wizard.service_components',
      sender: this,
      data: {
        stackUrl: App.get('stackVersionURL'),
        stackVersion: App.get('currentStackVersionNumber'),
        async: false
      success: 'loadServiceComponentsSuccessCallback',
      error: 'loadServiceComponentsErrorCallback'

  'router.authentication': {
    'real': '/clusters?fields=Clusters/provisioning_state',
    'mock': '/data/clusters/info.json',
    'format': function() {
      return {
        async: false

  setRequestId: function () {
    if (App.get('testMode')) {
      this.set('requestId', '1');
    var self = this;
    var url = this.get('url');
    var method = 'PUT';
    var data = this.get('data');

      type: method,
      url: url,
      async: false,
      data: data,

This message was sent by Atlassian JIRA

View raw message