Browse Source

HUE-7586 [assist] Re-wire collection refresh subscriber

Enrico Berti 8 years ago
parent
commit
826c34a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/core/src/desktop/templates/assist.mako

+ 4 - 0
desktop/core/src/desktop/templates/assist.mako

@@ -1139,6 +1139,10 @@ from desktop.views import _ko
           self.sources.push(self.sourceIndex[sourceType.type]);
         });
 
+        huePubSub.subscribe('assist.collections.refresh', function() {
+          huePubSub.publish('assist.db.refresh', { sourceTypes: ['solr'], allCacheTypes: false });
+        });
+
         huePubSub.subscribe('assist.db.highlight', function (location) {
           huePubSub.publish('left.assist.show');
           huePubSub.publish('assist.show.sql');