From e75f7b0beb48a34ea949c3adb00d90c0dbf4f250 Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 20 Feb 2020 17:29:34 -0500 Subject: [PATCH] Stop making rest calls for inventory source sync updates on inventory sources list --- .../sources/list/sources-list.controller.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/sources/list/sources-list.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/sources/list/sources-list.controller.js index e1ba3dfd75..5efa694624 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/sources/list/sources-list.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/sources/list/sources-list.controller.js @@ -42,21 +42,7 @@ $scope.$on(`ws-jobs`, function(e, data){ inventory_source = Find({ list: $scope.inventory_sources, key: 'id', val: data.inventory_source_id }); - if (inventory_source === undefined || inventory_source === null) { - inventory_source = {}; - } - - if(data.status === 'failed' || data.status === 'successful'){ - let path = GetBasePath('inventory') + $stateParams.inventory_id + '/inventory_sources'; - - qs.search(path, $state.params[`${list.iterator}_search`]) - .then((searchResponse)=> { - $scope[`${list.iterator}_dataset`] = searchResponse.data; - $scope[list.name] = $scope[`${list.iterator}_dataset`].results; - _.forEach($scope[list.name], buildStatusIndicators); - optionsRequestDataProcessing(); - }); - } else { + if (inventory_source) { var status = GetSyncStatusMsg({ status: data.status });