소스 검색

HUE-4979 [editor] Fix the context popover metastore and assist links

Johan Ahlen 9 년 전
부모
커밋
b2fc59f
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      desktop/core/src/desktop/templates/sql_context_popover.mako

+ 8 - 2
desktop/core/src/desktop/templates/sql_context_popover.mako

@@ -690,16 +690,22 @@ from metadata.conf import has_navigator
           }
         }));
 
+        var path = apiHelper.identifierChainToPath({
+          sourceType: sourceType,
+          defaultDatabase: defaultDatabase,
+          identifierChain: data.identifierChain
+        });
+
         pubSubs.push(huePubSub.subscribe('sql.context.popover.show.in.assist', function () {
           huePubSub.publish('assist.db.highlight', {
             sourceType: sourceType,
-            path: apiHelper.identifierChainToPath(data.identifierChain, defaultDatabase)
+            path: path
           });
           huePubSub.publish('sql.context.popover.hide')
         }));
 
         pubSubs.push(huePubSub.subscribe('sql.context.popover.open.in.metastore', function () {
-          window.open('/metastore/table/' + apiHelper.identifierChainToPath(data.identifierChain, defaultDatabase).join('/'), '_blank');
+          window.open('/metastore/table/' + path.join('/'), '_blank');
         }));
       }