Explorar o código

HUE-8036 [presentation] Protect from storm of API calls when loading back a query with presentation

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
a1ed144

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

@@ -2853,6 +2853,7 @@ var EditorViewModel = (function() {
       });
       if (typeof notebook.presentationSnippets != "undefined" && notebook.presentationSnippets != null) { // Load
         $.each(notebook.presentationSnippets, function(key, snippet) {
+          snippet.status = 'ready' // Protect from storm of check_statuses
           var _snippet = new Snippet(vm, self, snippet);
           _snippet.init();
           _snippet.previousChartOptions = vm._getPreviousChartOptions(_snippet);