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

HUE-4627 [editor] Do not insert history statements in the regular history

Romain Rigaux 8 жил өмнө
parent
commit
87a9172

+ 1 - 1
desktop/core/src/desktop/templates/ko_components.mako

@@ -331,7 +331,7 @@ from desktop.views import _ko
                     if (notebook.onSuccessUrl() == 'assist.db.refresh') { // TODO: Similar if in in FB directory, also refresh FB dir
                       huePubSub.publish('assist.db.refresh', { sourceType: 'hive' });
                     } else {
-                      huePubSub.publish('open.link', notebook.onSuccessUrl());
+                      huePubSub.publish('open.link', notebook.onSuccessUrl()); // TODO support FB
                     }
                   }
                 } else { // Perform last DROP statement execute

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

@@ -1073,7 +1073,9 @@ var EditorViewModel = (function() {
             self.status('available');
             self.progress(100);
           } else {
-            if (! notebook.unloaded()) { self.checkStatus(); };
+            if (! notebook.unloaded()) {
+              self.checkStatus();
+            };
           }
         } else {
           self._ajaxError(data, self.execute);
@@ -1689,6 +1691,7 @@ var EditorViewModel = (function() {
     self.type = ko.observable(typeof notebook.type != "undefined" && notebook.type != null ? notebook.type : 'notebook');
     self.coordinatorUuid = ko.observable(typeof notebook.coordinatorUuid != "undefined" && notebook.coordinatorUuid != null ? notebook.coordinatorUuid : null);
     self.isHistory = ko.observable(typeof notebook.is_history != "undefined" && notebook.is_history != null ? notebook.is_history : false);
+    self.isManaged = ko.observable(typeof notebook.isManaged != "undefined" && notebook.isManaged != null ? notebook.isManaged : false);
     self.parentSavedQueryUuid = ko.observable(typeof notebook.parentSavedQueryUuid != "undefined" && notebook.parentSavedQueryUuid != null ? notebook.parentSavedQueryUuid : null); // History parent
     self.isSaved = ko.observable(typeof notebook.isSaved != "undefined" && notebook.isSaved != null ? notebook.isSaved : false);
     self.canWrite = ko.observable(typeof notebook.can_write != "undefined" && notebook.can_write != null ? notebook.can_write : true);