浏览代码

HUE-3633 [editor] Cleanup some properties that should not be serialized

Romain Rigaux 9 年之前
父节点
当前提交
79a9121
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. 11 7
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 11 - 7
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -23,7 +23,11 @@
 }(this, function (ko, AssistHelper, Autocompleter) {
 
   var NOTEBOOK_MAPPING = {
-    ignore: ["ace", "autocompleter", "availableSnippets", "history", "images", "inFocus", "isResultSettingsVisible", "selectedStatement", "settingsVisible", "user"]
+    ignore: [
+      "ace", "autocompleter", "availableSnippets", "history", "images", "inFocus", "isResultSettingsVisible", "selectedStatement", "settingsVisible", "user",
+      "availableDatabases", "hasProperties", "viewSettings", "aceMode", "snippetImage", "errorLoadingQueries",
+      "cleanedStringMeta", "cleanedDateTimeMeta", "cleanedMeta"
+    ]
   };
 
   var Result = function (snippet, result) {
@@ -597,12 +601,12 @@
           notebook.uuid(data.history_uuid);
 
           notebook.history.push( // TODO append to beginning
-            self._makeHistoryRecord(
-                url,
-                self.statement_raw(),
-                self.lastExecuted(),
-                self.status(),
-                notebook.uuid()
+            notebook._makeHistoryRecord(
+              url,
+              self.statement_raw(),
+              self.lastExecuted(),
+              self.status(),
+              notebook.uuid()
             )
           );
         }