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

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

Romain Rigaux 9 жил өмнө
parent
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)

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
desktop/libs/notebook/src/notebook/fixtures/initial_notebook_examples.json


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно