Skip to content

Commit

Permalink
[INLONG-9053][Dashboard] Query list shows creators and modifiers (#9054)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluewang authored Oct 13, 2023
1 parent f197546 commit de29e2c
Show file tree
Hide file tree
Showing 13 changed files with 78 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export class ClusterDefaultInfo implements DataWithBackend, RenderRow, RenderLis
@I18n('pages.Clusters.Description')
description: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

version?: number;

parse(data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ export class ConsumeDefaultInfo implements DataWithBackend, RenderRow, RenderLis
@I18n('pages.ConsumeDashboard.config.OperatingStatus')
readonly lastConsumeStatus: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

parse(data) {
return data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ export class GroupDefaultInfo implements DataWithBackend, RenderRow, RenderList
@I18n('basic.CreateTime')
readonly createTime: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

parse(data) {
return data;
}
Expand Down
8 changes: 8 additions & 0 deletions inlong-dashboard/src/plugins/nodes/common/NodeDefaultInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ export class NodeDefaultInfo implements DataWithBackend, RenderRow, RenderList {
@I18n('meta.Nodes.Description')
description?: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

readonly version?: number;

parse(data) {
Expand Down
8 changes: 8 additions & 0 deletions inlong-dashboard/src/plugins/sinks/common/SinkDefaultInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ export class SinkDefaultInfo implements DataWithBackend, RenderRow, RenderList {
@I18n('basic.Status')
readonly status: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

parse(data) {
return data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ export class SourceDefaultInfo implements DataWithBackend, RenderRow, RenderList
@I18n('basic.Status')
readonly status: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

parse(data) {
return data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export class StreamDefaultInfo implements DataWithBackend, RenderRow, RenderList
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

@ColumnDecorator()
@I18n('basic.CreateTime')
readonly createTime: string;
Expand Down
8 changes: 8 additions & 0 deletions inlong-dashboard/src/plugins/sync/common/SyncDefaultInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ export class SyncDefaultInfo implements DataWithBackend, RenderRow, RenderList {
@I18n('basic.CreateTime')
readonly createTime: string;

@ColumnDecorator()
@I18n('basic.Creator')
readonly creator: string;

@ColumnDecorator()
@I18n('basic.Modifier')
readonly modifier: string;

parse(data) {
return data;
}
Expand Down
1 change: 1 addition & 0 deletions inlong-dashboard/src/ui/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"basic.DeleteSuccess": "删除成功",
"basic.Status": "状态",
"basic.Creator": "创建人",
"basic.Modifier": "修改人",
"basic.CreateTime": "创建时间",
"basic.Yes": "",
"basic.No": "",
Expand Down
5 changes: 3 additions & 2 deletions inlong-dashboard/src/ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"basic.DeleteSuccess": "Delete Success",
"basic.Status": "Status",
"basic.Creator": "Creator",
"basic.Modifier": "Modifier",
"basic.CreateTime": "CreateTime",
"basic.Yes": "Yes",
"basic.No": "No",
Expand Down Expand Up @@ -748,7 +749,7 @@
"pages.Clusters.TypeAll": "All",
"pages.Clusters.Create": "Create",
"pages.Clusters.Edit": "Edit",
"pages.Clusters.LastModifier": "LastModifier",
"pages.Clusters.LastModifier": "Last modifier",
"pages.Clusters.Name": "Cluster Name",
"pages.Clusters.Tag": "Cluster Tag",
"pages.Clusters.InCharges": "Owners",
Expand All @@ -760,7 +761,7 @@
"pages.Clusters.Node.Status": "Status",
"pages.Clusters.Node.Status.Normal": "Normal",
"pages.Clusters.Node.Status.Timeout": "Timeout",
"pages.Clusters.Node.LastModifier": "LastModifier",
"pages.Clusters.Node.LastModifier": "Last modifier",
"pages.Clusters.Node.Create": "Create",
"pages.Clusters.Node.IpRule": "Please enter the IP address correctly",
"pages.Clusters.Node.PortRule": "Please enter the port address correctly",
Expand Down
10 changes: 10 additions & 0 deletions inlong-dashboard/src/ui/pages/ClusterTags/ClusterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ const Comp: React.FC<ClusterListProps> = ({ clusterTag }) => {
dataIndex: 'description',
ellipsisMulti: 2,
},
{
title: i18n.t('basic.Creator'),
dataIndex: 'creator',
ellipsisMulti: 2,
},
{
title: i18n.t('basic.Modifier'),
dataIndex: 'modifier',
ellipsisMulti: 2,
},
];

return defaultColumns.concat([
Expand Down
4 changes: 4 additions & 0 deletions inlong-dashboard/src/ui/pages/TenantManagement/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export const getColumns = ({ onEdit }) => {
title: i18n.t('pages.Tenant.config.Creator'),
dataIndex: 'creator',
},
{
title: i18n.t('basic.Modifier'),
dataIndex: 'modifier',
},
{
title: i18n.t('pages.Tenant.config.CreateTime'),
dataIndex: 'createTime',
Expand Down
4 changes: 4 additions & 0 deletions inlong-dashboard/src/ui/pages/UserManagement/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export const getColumns = ({ onEdit, onDelete }) => {
title: i18n.t('pages.UserManagement.config.Creator'),
dataIndex: 'creator',
},
{
title: i18n.t('basic.Modifier'),
dataIndex: 'modifier',
},
{
title: i18n.t('pages.UserManagement.config.CreateTime'),
dataIndex: 'createTime',
Expand Down

0 comments on commit de29e2c

Please sign in to comment.