Bläddra i källkod

HUE-7967 [metastore] Fix the context popover for tables and columns in the table browser

Johan Ahlen 7 år sedan
förälder
incheckning
6fe1c9a
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      apps/metastore/src/metastore/static/metastore/js/metastore.model.js

+ 2 - 2
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -559,7 +559,7 @@ var MetastoreTable = (function () {
     huePubSub.publish('context.popover.show', {
       data: {
         type: 'table',
-        identifierChain: [{ name: entry.catalogEntry.name }]
+        identifierChain: [{ name: entry.database.catalogEntry.name }, { name: entry.catalogEntry.name }]
       },
       orientation: orientation || 'right',
       sourceType: entry.catalogEntry.getSourceType(),
@@ -625,7 +625,7 @@ var MetastoreColumn = (function () {
     huePubSub.publish('context.popover.show', {
       data: {
         type: 'column',
-        identifierChain: [{ name: entry.table.catalogEntry.name }, { name: entry.catalogEntry.name }]
+        identifierChain: [{ name: entry.table.database.catalogEntry.name }, { name: entry.table.catalogEntry.name }, { name: entry.catalogEntry.name }]
       },
       orientation: 'right',
       sourceType: entry.catalogEntry.getSourceType(),