浏览代码

HUE-4122 [editor] Examples should have isSaved set to true

Romain Rigaux 9 年之前
父节点
当前提交
c2f664fbf9

+ 3 - 1
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

@@ -314,7 +314,9 @@ class SampleQuery(object):
       except Document2.DoesNotExist:
         # Create document from saved query
         notebook = import_saved_beeswax_query(query)
-        data = notebook.get_json()
+        data = notebook.get_data()
+        data['isSaved'] = True
+        data = json.dumps(data)
 
         # Get or create sample user directories
         home_dir = Directory.objects.get_home_directory(django_user)

文件差异内容过多而无法显示
+ 0 - 0
desktop/libs/notebook/src/notebook/fixtures/initial_notebook_examples.json


部分文件因为文件数量过多而无法显示