|
@@ -783,6 +783,9 @@ from desktop.views import _ko
|
|
|
<!-- ko if: type === 'DIRECTORY' -->
|
|
<!-- ko if: type === 'DIRECTORY' -->
|
|
|
<i class="fa fa-fw fa-folder-o valign-middle"></i>
|
|
<i class="fa fa-fw fa-folder-o valign-middle"></i>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ <!-- ko if: type === 'TABLE' -->
|
|
|
|
|
+ <i class="fa fa-fw fa-table valign-middle"></i>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
<!-- ko if: type === 'DATABASE' -->
|
|
<!-- ko if: type === 'DATABASE' -->
|
|
|
<i class="fa fa-fw fa-database valign-middle"></i>
|
|
<i class="fa fa-fw fa-database valign-middle"></i>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -795,6 +798,10 @@ from desktop.views import _ko
|
|
|
<!-- ko if: type === 'DATABASE' -->
|
|
<!-- ko if: type === 'DATABASE' -->
|
|
|
<div class="doc-desc" data-bind="text: originalDescription"></div>
|
|
<div class="doc-desc" data-bind="text: originalDescription"></div>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
|
|
+ <!-- ko if: type === 'TABLE' -->
|
|
|
|
|
+ <div class="doc-desc" data-bind="text: originalDescription"></div>
|
|
|
|
|
+ <div class="doc-desc" data-bind="text: parentPath"></div>
|
|
|
|
|
+ <!-- /ko -->
|
|
|
<!-- ko if: type === 'SOURCE' -->
|
|
<!-- ko if: type === 'SOURCE' -->
|
|
|
<div class="doc-desc" data-bind="text: 'Cluster: ' + clusterName"></div>
|
|
<div class="doc-desc" data-bind="text: 'Cluster: ' + clusterName"></div>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
@@ -1137,6 +1144,8 @@ from desktop.views import _ko
|
|
|
data.entities.forEach(function (entity) {
|
|
data.entities.forEach(function (entity) {
|
|
|
if (entity.type === 'DATABASE') {
|
|
if (entity.type === 'DATABASE') {
|
|
|
entity.link = '/metastore/tables/' + entity.originalName;
|
|
entity.link = '/metastore/tables/' + entity.originalName;
|
|
|
|
|
+ } else if (entity.type === 'TABLE') {
|
|
|
|
|
+ entity.link = '/metastore/table' + entity.parentPath + '/' + entity.originalName;
|
|
|
} else if (entity.type === 'SOURCE') {
|
|
} else if (entity.type === 'SOURCE') {
|
|
|
entity.link = entity.sourceUrl;
|
|
entity.link = entity.sourceUrl;
|
|
|
} else if (entity.type === 'DIRECTORY' || entity.type === 'FILE') {
|
|
} else if (entity.type === 'DIRECTORY' || entity.type === 'FILE') {
|