Bläddra i källkod

HUE-6561 [metadata] Leave time to read the DDL stats upload result

Romain Rigaux 8 år sedan
förälder
incheckning
7c79d7a

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

@@ -1835,7 +1835,7 @@ from notebook.conf import get_ordered_interpreters
           <div class="margin-top-20">
             <!-- ko hueSpinner: { spin: uploadingTableStats, inline: true} --><!-- /ko -->
             <!-- ko ifnot: uploadingTableStats -->
-            <a href="javascript:void(0)" data-bind="visible: activeTables().length > 0, click: uploadTableStats, attr: { 'title': ('${ _("Add missing table and columns ") }'  + (isMissingDDL() ? 'DDL' : '') + (isMissingDDL() && isMissingStats() ? ' ${ _("and") } ' : '') + (isMissingStats() ? 'stats' : '')) }">
+            <a href="javascript:void(0)" data-bind="visible: activeTables().length > 0, click: uploadTableStats, attr: { 'title': ('${ _("Add table ") }'  + (isMissingDDL() ? 'DDL' : '') + (isMissingDDL() && isMissingStats() ? ' ${ _("and") } ' : '') + (isMissingStats() ? 'stats' : '')) }">
               <i class="fa fa-fw fa-plus-circle"></i> ${_('Improve Analysis')}
             </a>
             <!-- /ko -->

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

@@ -1684,7 +1684,7 @@ var EditorViewModel = (function() {
               self.watchUploadStatus(workloadId);
             }, 2000);
           } else {
-            $(document).trigger("info", ko.mapping.toJSON(data.upload_status.status));
+            $(document).trigger("warn", data.upload_status.status.statusMsg + (data.upload_status.status.failedQueries > 0 ? '. ' + data.upload_status.status.failQueryDetails : ''));
           }
         } else {
           $(document).trigger("error", data.message);