Эх сурвалжийг харах

HUE-6602 [editor] Limit the availability history check to N last running queries

Romain Rigaux 8 жил өмнө
parent
commit
741d328

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -2212,7 +2212,7 @@ var EditorViewModel = (function() {
     self.updateHistory = function (statuses, interval) {
       var items = $.grep(self.history(), function (item) {
         return statuses.indexOf(item.status()) != -1;
-      });
+      }).slice(0, 25);
 
       function updateHistoryCall(item) {
         $.post("/notebook/api/check_status", {