Added logic to not show the loop summary events in the UI by looking at event_data.event_loop.

This commit is contained in:
mabashian 2016-03-23 15:58:27 -04:00
parent f2284a0098
commit 9e3d4a99d2
2 changed files with 9 additions and 2 deletions

View File

@ -3,7 +3,7 @@
*
* All Rights Reserved
*************************************************/
/**
* @ngdoc function
* @name helpers.function:HostEventsViewer
@ -273,6 +273,13 @@ export default
.success(function(data) {
var lastID;
scope.hostViewSearching = false;
// Loop across the events and remove any events where
// event_data.event_loop is not null
for(var i=data.results.length-1; i>=0; i--){
if(data.results[i].event_data && data.results[i].event_data.event_loop) {
data.results.splice(i, 1);
}
}
if (data.results.length > 0) {
lastID = data.results[data.results.length - 1].id;
}

View File

@ -1021,7 +1021,7 @@ export default
}
}
if (event.event !== "runner_on_no_hosts") {
if (event.event !== "runner_on_no_hosts" && (!event.event_data || (!event.event_data.event_loop || event.event_data.event_loop === null))) {
scope.hostResults.push({
id: event.id,
status: status,