Skip to content

Commit

Permalink
[Feature-332][UI] Add table comment fields to the table list in the d…
Browse files Browse the repository at this point in the history
…ata catalog interface (#333)
  • Loading branch information
xxzuo authored Jan 6, 2024
1 parent fcfdc65 commit 53352fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ private IPage<CatalogEntityInstance> getCatalogEntityInstancePage(String upstrea
queryWrapper.lambda()
.in(CatalogEntityInstance::getUuid, uuidList)
.eq(CatalogEntityInstance::getStatus, CommonConstants.CATALOG_ENTITY_INSTANCE_STATUS_ACTIVE)
.like(StringUtils.isNotEmpty(name), CatalogEntityInstance::getDisplayName, name)
.and(qw -> qw.like(StringUtils.isNotEmpty(name), CatalogEntityInstance::getDisplayName, name)
.or()
.like(StringUtils.isNotEmpty(name), CatalogEntityInstance::getDescription, name))
.orderBy(true, true, CatalogEntityInstance::getId);
return page(page, queryWrapper);
}
Expand Down Expand Up @@ -261,6 +263,7 @@ public IPage<CatalogTableDetailVO> getCatalogTableWithDetailPage(String upstream
CatalogTableDetailVO table = new CatalogTableDetailVO();
table.setName(item.getDisplayName());
table.setUuid(item.getUuid());
table.setComment(item.getDescription());
table.setUpdateTime(item.getUpdateTime());
List<CatalogEntityInstance> columnList = getCatalogEntityInstances(item.getUuid());
table.setColumns((long)(CollectionUtils.isEmpty(columnList)? 0 : columnList.size()));
Expand Down
5 changes: 5 additions & 0 deletions datavines-ui/Editor/components/Database/option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export const dataBaseCol:Col[][] = [[{
key: 'name',
render: (_: any, { name }: any) => <span className="text-underline">{name}</span>,
},
{
title: <FormattedMessage id="job_comment" />,
dataIndex: 'comment',
key: 'comment',
},
{
title: <FormattedMessage id="job_last_refresh_time" />,
dataIndex: 'updateTime',
Expand Down

0 comments on commit 53352fd

Please sign in to comment.