This is an automated email from the ASF dual-hosted git repository. healchow pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new 8727a9d834 [INLONG-8204][Dashboard] Support querying audit information by sink id (#8205) 8727a9d834 is described below commit 8727a9d834b85837afbcba1c02f89a1a4054cda7 Author: Lizhen <88174078+bluew...@users.noreply.github.com> AuthorDate: Mon Jun 12 17:55:52 2023 +0800 [INLONG-8204][Dashboard] Support querying audit information by sink id (#8205) --- inlong-dashboard/src/ui/locales/cn.json | 1 + inlong-dashboard/src/ui/locales/en.json | 1 + .../src/ui/pages/GroupDetail/Audit/config.tsx | 27 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/inlong-dashboard/src/ui/locales/cn.json b/inlong-dashboard/src/ui/locales/cn.json index 3d98c4c22b..d7679e07fb 100644 --- a/inlong-dashboard/src/ui/locales/cn.json +++ b/inlong-dashboard/src/ui/locales/cn.json @@ -623,6 +623,7 @@ "pages.GroupDetail.Audit.Min": "分钟", "pages.GroupDetail.Audit.Hour": "小时", "pages.GroupDetail.Audit.Day": "天", + "pages.GroupDetail.Audit.Sink": "数据目标", "pages.ApprovalDetail.GroupConfig.DataStorages": "数据存储", "pages.ApprovalDetail.GroupConfig.ApprovalInformation": "审批信息", "pages.ApprovalDetail.GroupConfig.DataFlowInformation": "数据流信息", diff --git a/inlong-dashboard/src/ui/locales/en.json b/inlong-dashboard/src/ui/locales/en.json index b982b5f58e..fa104096bd 100644 --- a/inlong-dashboard/src/ui/locales/en.json +++ b/inlong-dashboard/src/ui/locales/en.json @@ -623,6 +623,7 @@ "pages.GroupDetail.Audit.Min": "Minute", "pages.GroupDetail.Audit.Hour": "Hour", "pages.GroupDetail.Audit.Day": "Day", + "pages.GroupDetail.Audit.Sink": "Sink", "pages.ApprovalDetail.GroupConfig.DataStorages": "DataStorages", "pages.ApprovalDetail.GroupConfig.ApprovalInformation": "Approval information", "pages.ApprovalDetail.GroupConfig.DataFlowInformation": "Data stream information", diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx index 7a7637f0e5..ec6527a9c7 100644 --- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx +++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx @@ -130,6 +130,33 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr }, rules: [{ required: true }], }, + { + type: 'select', + label: i18n.t('pages.GroupDetail.Audit.Sink'), + name: 'sinkId', + props: values => ({ + dropdownMatchSelectWidth: false, + options: { + requestService: { + url: '/sink/list', + method: 'POST', + data: { + pageNum: 1, + pageSize: 1000, + inlongGroupId, + inlongStreamId: values.inlongStreamId, + }, + }, + requestParams: { + formatResult: result => + result?.list.map(item => ({ + label: item.sinkName + ` ( ${sinks.find(c => c.value === item.sinkType)?.label} )`, + value: item.id, + })) || [], + }, + }, + }), + }, { type: 'datepicker', label: i18n.t('pages.GroupDetail.Audit.Date'),