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

HUE-6504 [importer] Add error message when related to query compilation issue

Romain Rigaux 8 жил өмнө
parent
commit
4eb5ce6

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

@@ -220,7 +220,7 @@ from desktop.views import _ko
         </div>
         <ul class="unstyled notification-history-list">
           <!-- ko foreach: history -->
-          <li data-bind="click: function() {  $parents[1].editorViewModel.openNotebook(uuid()); }">
+          <li data-bind="click: function() { $parents[1].editorViewModel.openNotebook(uuid()); }">
             <div class="muted pull-left" data-bind="momentFromNow: {data: lastExecuted, interval: 10000, titleFormat: 'LLL'}"></div>
             <div class="pull-right muted">
               <!-- ko switch: status -->

+ 2 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -896,7 +896,7 @@ var EditorViewModel = (function() {
     });
 
 
-    if (HAS_OPTIMIZER) {
+    if (HAS_OPTIMIZER && ! vm.isNotificationManager()) {
       var lastComplexityRequest;
       var lastCheckedComplexityStatement;
 
@@ -1145,6 +1145,7 @@ var EditorViewModel = (function() {
               var tasks = $.grep(notebook.history(), function(row) { return row.uuid() == notebook.uuid()});
               if (tasks.length == 1) {
                 tasks[0].status(self.status());
+                self.result.logs(data.message);
               }
             } else {
               notebook.history.unshift(