You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2022/07/29 09:07:55 UTC

[inlong] branch master updated: [INLONG-5120][Dashboard] The list page of stream, source and sink supports status filtering (#5275)

This is an automated email from the ASF dual-hosted git repository.

dockerzhang 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 bc1122e4b [INLONG-5120][Dashboard] The list page of stream, source and sink supports status filtering (#5275)
bc1122e4b is described below

commit bc1122e4bd1985d86b80168fa8789dd7983b445e
Author: Daniel <le...@outlook.com>
AuthorDate: Fri Jul 29 17:07:50 2022 +0800

    [INLONG-5120][Dashboard] The list page of stream, source and sink supports status filtering (#5275)
---
 .../src/pages/AccessDetail/DataSources/index.tsx             | 12 +++++++++++-
 .../src/pages/AccessDetail/DataStorage/index.tsx             | 11 ++++++++++-
 .../src/pages/AccessDetail/DataStream/config.tsx             | 10 ++++++++++
 3 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/inlong-dashboard/src/pages/AccessDetail/DataSources/index.tsx b/inlong-dashboard/src/pages/AccessDetail/DataSources/index.tsx
index 0f3187d5a..f08868b0f 100644
--- a/inlong-dashboard/src/pages/AccessDetail/DataSources/index.tsx
+++ b/inlong-dashboard/src/pages/AccessDetail/DataSources/index.tsx
@@ -28,7 +28,7 @@ import { dataSourcesFileColumns } from '@/components/MetaData/DataSourcesFile';
 import i18n from '@/i18n';
 import request from '@/utils/request';
 import { CommonInterface } from '../common';
-import { genStatusTag } from './status';
+import { statusList, genStatusTag } from './status';
 
 type Props = CommonInterface;
 
@@ -56,6 +56,16 @@ const getFilterFormContent = defaultValues => [
       ],
     },
   },
+  {
+    type: 'select',
+    name: 'status',
+    label: i18n.t('basic.Status'),
+    props: {
+      allowClear: true,
+      dropdownMatchSelectWidth: false,
+      options: statusList,
+    },
+  },
 ];
 
 const Comp = ({ inlongGroupId, readonly }: Props, ref) => {
diff --git a/inlong-dashboard/src/pages/AccessDetail/DataStorage/index.tsx b/inlong-dashboard/src/pages/AccessDetail/DataStorage/index.tsx
index 672b9e178..1e6877a0b 100644
--- a/inlong-dashboard/src/pages/AccessDetail/DataStorage/index.tsx
+++ b/inlong-dashboard/src/pages/AccessDetail/DataStorage/index.tsx
@@ -27,7 +27,7 @@ import { DataStorageDetailModal } from '@/components/AccessHelper';
 import { Storages } from '@/components/MetaData';
 import request from '@/utils/request';
 import { CommonInterface } from '../common';
-import { genStatusTag } from './status';
+import { statusList, genStatusTag } from './status';
 
 type Props = CommonInterface;
 
@@ -49,6 +49,15 @@ const getFilterFormContent = defaultValues => [
       })),
     },
   },
+  {
+    type: 'select',
+    name: 'status',
+    label: i18n.t('basic.Status'),
+    props: {
+      allowClear: true,
+      options: statusList,
+    },
+  },
 ];
 
 const Comp = ({ inlongGroupId, readonly }: Props, ref) => {
diff --git a/inlong-dashboard/src/pages/AccessDetail/DataStream/config.tsx b/inlong-dashboard/src/pages/AccessDetail/DataStream/config.tsx
index af74d1760..ba1c72708 100644
--- a/inlong-dashboard/src/pages/AccessDetail/DataStream/config.tsx
+++ b/inlong-dashboard/src/pages/AccessDetail/DataStream/config.tsx
@@ -21,6 +21,7 @@ import React from 'react';
 import { Divider } from 'antd';
 import i18n from '@/i18n';
 import { genBusinessFields, genDataFields } from '@/components/AccessHelper';
+import { statusList } from './status';
 
 export const getFilterFormContent = (defaultValues = {} as any) => [
   {
@@ -28,6 +29,15 @@ export const getFilterFormContent = (defaultValues = {} as any) => [
     name: 'keyword',
     initialValue: defaultValues.keyword,
   },
+  {
+    type: 'select',
+    name: 'status',
+    label: i18n.t('basic.Status'),
+    props: {
+      allowClear: true,
+      options: statusList,
+    },
+  },
 ];
 
 export const genExtraContent = ({