Browse Source

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

Romain Rigaux 9 năm trước cách đây
mục cha
commit
c2f664f

+ 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)

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
desktop/libs/notebook/src/notebook/fixtures/initial_notebook_examples.json


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác