Преглед изворни кода

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

Romain Rigaux пре 8 година
родитељ
комит
741d328
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 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", {