Merge pull request #5296 from jlmitch5/jobResultsPerformanceAgain

more job results performance stuff
This commit is contained in:
jlmitch5 2017-02-13 14:31:15 -05:00 committed by GitHub
commit 691612d899
3 changed files with 12 additions and 7 deletions

View File

@ -52,10 +52,14 @@ export default ['jobResultsService', 'parseStdoutService', function(jobResultsSe
},
// populates the event queue
populate: function(event) {
val.queue[event.counter] = val.munge(event);
if (event) {
val.queue[event.counter] = val.munge(event);
if (!val.queue[event.counter].processed) {
return val.munge(event);
if (!val.queue[event.counter].processed) {
return val.munge(event);
} else {
return {};
}
} else {
return {};
}

View File

@ -586,10 +586,10 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
var buffer = [];
var processBuffer = function() {
buffer.forEach((event, i) => {
processEvent(event);
for (let i = 0; i < 20; i++) {
processEvent(buffer[i]);
buffer.splice(i, 1);
});
}
};
var bufferInterval;

View File

@ -237,7 +237,8 @@
// Additional modal specific styles
.modal-body, #add-permissions-modal {
.modal-body, #add-permissions-modal,
.JobResults {
.SmartSearch-searchTermContainer {
width: 100%;
}