mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Remove unused host status service
This commit is contained in:
committed by
Ryan Petrello
parent
ec1c2a8391
commit
1220847c27
@@ -5,11 +5,9 @@
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
export default
|
export default
|
||||||
['$scope', '$rootScope', '$state', '$stateParams', 'HostsRelatedGroupsList', 'InventoryUpdate',
|
['$scope', '$rootScope', '$state', '$stateParams', 'HostsRelatedGroupsList', 'InventoryUpdate',
|
||||||
'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath',
|
'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath', 'Dataset', 'Find', 'QuerySet', 'inventoryData', 'host', 'GroupsService',
|
||||||
'GetHostsStatusMsg', 'Dataset', 'Find', 'QuerySet', 'inventoryData', 'host', 'GroupsService',
|
|
||||||
function($scope, $rootScope, $state, $stateParams, HostsRelatedGroupsList, InventoryUpdate,
|
function($scope, $rootScope, $state, $stateParams, HostsRelatedGroupsList, InventoryUpdate,
|
||||||
CancelSourceUpdate, rbacUiControlService, GetBasePath,
|
CancelSourceUpdate, rbacUiControlService, GetBasePath, Dataset, Find, qs, inventoryData, host, GroupsService){
|
||||||
GetHostsStatusMsg, Dataset, Find, qs, inventoryData, host, GroupsService){
|
|
||||||
|
|
||||||
let list = HostsRelatedGroupsList;
|
let list = HostsRelatedGroupsList;
|
||||||
|
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
export default
|
|
||||||
['i18n', function(i18n) {
|
|
||||||
return function(params) {
|
|
||||||
var active_failures = params.active_failures,
|
|
||||||
total_hosts = params.total_hosts,
|
|
||||||
tip, failures, html_class;
|
|
||||||
|
|
||||||
// Return values for use on host status indicator
|
|
||||||
|
|
||||||
if (active_failures > 0) {
|
|
||||||
tip = total_hosts + ((total_hosts === 1) ? ' host' : ' hosts') + '. ' + active_failures + i18n._(' with failed jobs.');
|
|
||||||
html_class = 'error';
|
|
||||||
failures = true;
|
|
||||||
} else {
|
|
||||||
failures = false;
|
|
||||||
if (total_hosts === 0) {
|
|
||||||
// no hosts
|
|
||||||
tip = i18n._("Contains 0 hosts.");
|
|
||||||
html_class = 'none';
|
|
||||||
} else {
|
|
||||||
// many hosts with 0 failures
|
|
||||||
tip = total_hosts + ((total_hosts === 1) ? ' host' : ' hosts') + '. ' + i18n._('No job failures');
|
|
||||||
html_class = 'success';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
tooltip: tip,
|
|
||||||
failures: failures,
|
|
||||||
'class': html_class
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}];
|
|
||||||
@@ -5,12 +5,10 @@
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
export default
|
export default
|
||||||
['$scope', '$state', '$stateParams', 'listDefinition', 'InventoryUpdate',
|
['$scope', '$state', '$stateParams', 'listDefinition', 'InventoryUpdate',
|
||||||
'GroupsService', 'CancelSourceUpdate',
|
'GroupsService', 'CancelSourceUpdate', 'Dataset', 'inventoryData', 'canAdd',
|
||||||
'GetHostsStatusMsg', 'Dataset', 'inventoryData', 'canAdd',
|
|
||||||
'InventoryHostsStrings', '$transitions', 'GetBasePath', 'Rest',
|
'InventoryHostsStrings', '$transitions', 'GetBasePath', 'Rest',
|
||||||
function($scope, $state, $stateParams, listDefinition, InventoryUpdate,
|
function($scope, $state, $stateParams, listDefinition, InventoryUpdate,
|
||||||
GroupsService, CancelSourceUpdate,
|
GroupsService, CancelSourceUpdate, Dataset, inventoryData, canAdd,
|
||||||
GetHostsStatusMsg, Dataset, inventoryData, canAdd,
|
|
||||||
InventoryHostsStrings, $transitions, GetBasePath, Rest){
|
InventoryHostsStrings, $transitions, GetBasePath, Rest){
|
||||||
|
|
||||||
let list = listDefinition;
|
let list = listDefinition;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import groupAdd from './add/main';
|
|||||||
import groupEdit from './edit/main';
|
import groupEdit from './edit/main';
|
||||||
import groupFormDefinition from './groups.form';
|
import groupFormDefinition from './groups.form';
|
||||||
import groupListDefinition from './groups.list';
|
import groupListDefinition from './groups.list';
|
||||||
import GetHostsStatusMsg from './factories/get-hosts-status-msg.factory';
|
|
||||||
import nestedGroups from './related/nested-groups/main';
|
import nestedGroups from './related/nested-groups/main';
|
||||||
import nestedHosts from './related/nested-hosts/main';
|
import nestedHosts from './related/nested-hosts/main';
|
||||||
|
|
||||||
@@ -22,5 +21,4 @@ export default
|
|||||||
nestedHosts.name
|
nestedHosts.name
|
||||||
])
|
])
|
||||||
.factory('GroupForm', groupFormDefinition)
|
.factory('GroupForm', groupFormDefinition)
|
||||||
.factory('GroupList', groupListDefinition)
|
.factory('GroupList', groupListDefinition);
|
||||||
.factory('GetHostsStatusMsg', GetHostsStatusMsg);
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
export default
|
export default
|
||||||
['$scope', '$rootScope', '$state', '$stateParams', 'NestedGroupListDefinition', 'InventoryUpdate',
|
['$scope', '$rootScope', '$state', '$stateParams', 'NestedGroupListDefinition', 'InventoryUpdate',
|
||||||
'GroupsService', 'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath',
|
'GroupsService', 'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath',
|
||||||
'GetHostsStatusMsg', 'Dataset', 'Find', 'QuerySet', 'inventoryData', 'canAdd', 'groupData', 'ProcessErrors',
|
'Dataset', 'Find', 'QuerySet', 'inventoryData', 'canAdd', 'groupData', 'ProcessErrors',
|
||||||
'$transitions',
|
'$transitions',
|
||||||
function($scope, $rootScope, $state, $stateParams, NestedGroupListDefinition, InventoryUpdate,
|
function($scope, $rootScope, $state, $stateParams, NestedGroupListDefinition, InventoryUpdate,
|
||||||
GroupsService, CancelSourceUpdate, rbacUiControlService, GetBasePath,
|
GroupsService, CancelSourceUpdate, rbacUiControlService, GetBasePath,
|
||||||
GetHostsStatusMsg, Dataset, Find, qs, inventoryData, canAdd, groupData, ProcessErrors,
|
Dataset, Find, qs, inventoryData, canAdd, groupData, ProcessErrors,
|
||||||
$transitions){
|
$transitions){
|
||||||
|
|
||||||
let list = NestedGroupListDefinition;
|
let list = NestedGroupListDefinition;
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
export default
|
export default
|
||||||
['$scope', '$rootScope', '$state', '$stateParams', 'HostNestedGroupListDefinition', 'InventoryUpdate',
|
['$scope', '$rootScope', '$state', '$stateParams', 'HostNestedGroupListDefinition', 'InventoryUpdate',
|
||||||
'GroupsService', 'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath',
|
'GroupsService', 'CancelSourceUpdate', 'rbacUiControlService', 'GetBasePath',
|
||||||
'GetHostsStatusMsg', 'Dataset', 'Find', 'QuerySet', 'inventoryData', 'canAdd', 'ProcessErrors', 'host',
|
'Dataset', 'Find', 'QuerySet', 'inventoryData', 'canAdd', 'ProcessErrors', 'host',
|
||||||
function($scope, $rootScope, $state, $stateParams, HostNestedGroupListDefinition, InventoryUpdate,
|
function($scope, $rootScope, $state, $stateParams, HostNestedGroupListDefinition, InventoryUpdate,
|
||||||
GroupsService, CancelSourceUpdate, rbacUiControlService, GetBasePath,
|
GroupsService, CancelSourceUpdate, rbacUiControlService, GetBasePath,
|
||||||
GetHostsStatusMsg, Dataset, Find, qs, inventoryData, canAdd, ProcessErrors, host){
|
Dataset, Find, qs, inventoryData, canAdd, ProcessErrors, host){
|
||||||
|
|
||||||
let list = HostNestedGroupListDefinition;
|
let list = HostNestedGroupListDefinition;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user