Sfoglia il codice sorgente

HUE-6505 [metastore] Fix js error when clicking on refreshing DB tables

Romain Rigaux 8 anni fa
parent
commit
065c75c

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistDbSource.js

@@ -304,7 +304,7 @@ var AssistDbSource = (function () {
     };
 
     huePubSub.subscribe('assist.db.refresh', function (options) {
-      if (options.sourceTypes.indexOf(self.sourceType) !== -1) {
+      if (['hive', 'impala'].indexOf(self.sourceType) !== -1) {
         window.setTimeout(function () {
           self.reload(options.allCacheTypes);
         }, 0);

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

@@ -344,7 +344,7 @@ from desktop.views import _ko
                 var db = match[1];
                 huePubSub.publish('assist.invalidate.impala', { flush: false, database: db });
               }
-              huePubSub.publish('assist.db.refresh', { sourceTypes: ['hive', 'impala'] });
+              huePubSub.publish('assist.db.refresh', { sourceType: 'hive' });
             };
             notebook.snippets()[0].status.subscribe(function(val){
               if (val == 'failed'){