ソースを参照

HUE-7075 [assist] Allow to refresh other types than Hive and Impala

Romain Rigaux 8 年 前
コミット
dab8f5a

+ 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 (['hive', 'impala'].indexOf(self.sourceType) !== -1) {
+      if (options.sourceTypes.indexOf(self.sourceType) !== -1) {
         window.setTimeout(function () {
           self.reload(options.allCacheTypes);
         }, 0);

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

@@ -716,7 +716,7 @@ var EditorViewModel = (function() {
           var db = match[1];
           huePubSub.publish('assist.invalidate.impala', { flush: false, database: db });
         }
-        huePubSub.publish('assist.db.refresh', { sourceType: self.type() });
+        huePubSub.publish('assist.db.refresh', { sourceTypes: [self.type()] });
       });
     }, 0);