Browse Source

HUE-5024 [editor] Exporting results to HDFS or new table changes the editor type from Hive to SQL

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

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -738,7 +738,7 @@ from metadata.conf import has_navigator
       <!-- /ko -->
       <!-- /ko -->
       <!-- ko if: loading -->
-      <span style="color: #aaa;"><i class="fa fa-filter" title="${_('Filter')}"></i></span>
+      <span style="color: #aaa;"><i class="fa fa-filter" title="${_('Filter tables')}"></i></span>
       <i class="fa fa-refresh fa-spin blue" title="${_('Manually refresh the table list')}"></i></a>
       <!-- /ko -->
     </div>

+ 0 - 1
desktop/libs/notebook/src/notebook/models.py

@@ -162,7 +162,6 @@ def make_notebook2(name='Browse', description='', is_saved=False, snippets=None)
       } for _snippet in _snippets # Non unique types currently
     ],
     'selectedSnippet': _snippets[0]['type'],
-    'type': 'notebook',
     'showHistory': False,
     'isSaved': is_saved,
     'snippets': [

+ 1 - 0
desktop/libs/notebook/src/notebook/views.py

@@ -182,6 +182,7 @@ def execute_and_watch(request):
       'options_json': json.dumps({
           'languages': [{"name": "%s SQL" % editor_type.title(), "type": editor_type}],
           'mode': 'editor',
+          'editor_type': editor_type,
           'success_url': success_url
       }),
       'editor_type': editor_type,