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

HUE-3889 [core] uuid of documents and json do not match in sample queries

Romain Rigaux 9 жил өмнө
parent
commit
073505075e

+ 2 - 0
desktop/core/src/desktop/api2.py

@@ -163,6 +163,8 @@ def get_document(request):
       notebook = Notebook(document=document)
       notebook = upgrade_session_properties(request, notebook)
       data = json.loads(notebook.data)
+      if 'uuid' not in data:
+        data['uuid'] = document.uuid
 
     response['data'] = data