You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/06/08 05:12:05 UTC
[incubator-inlong] branch master updated: [INLONG-4580][Dashboard] Add required restrictions for IP of file source and Hive conf dir (#4582)
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/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 1e0e6d1f6 [INLONG-4580][Dashboard] Add required restrictions for IP of file source and Hive conf dir (#4582)
1e0e6d1f6 is described below
commit 1e0e6d1f63e8ae3b83ca19674372d5a0290c8fb4
Author: ganfengtan <Ga...@users.noreply.github.com>
AuthorDate: Wed Jun 8 13:12:00 2022 +0800
[INLONG-4580][Dashboard] Add required restrictions for IP of file source and Hive conf dir (#4582)
* Data source IP address is mandatory
* Add required restrictions for Hive conf dir
Co-authored-by: healchow <he...@gmail.com>
---
inlong-dashboard/src/components/MetaData/DataSourcesFile.ts | 1 +
inlong-dashboard/src/components/MetaData/StorageHive.tsx | 1 +
2 files changed, 2 insertions(+)
diff --git a/inlong-dashboard/src/components/MetaData/DataSourcesFile.ts b/inlong-dashboard/src/components/MetaData/DataSourcesFile.ts
index 7e11cb4be..86ec27d01 100644
--- a/inlong-dashboard/src/components/MetaData/DataSourcesFile.ts
+++ b/inlong-dashboard/src/components/MetaData/DataSourcesFile.ts
@@ -35,6 +35,7 @@ export const getDataSourcesFileFields = (
{
pattern: rulesPattern.ip,
message: i18n.t('components.AccessHelper.DataSourceMetaData.File.IpRule'),
+ required: true,
},
],
_inTable: true,
diff --git a/inlong-dashboard/src/components/MetaData/StorageHive.tsx b/inlong-dashboard/src/components/MetaData/StorageHive.tsx
index 3e6938af3..b37de3c4f 100644
--- a/inlong-dashboard/src/components/MetaData/StorageHive.tsx
+++ b/inlong-dashboard/src/components/MetaData/StorageHive.tsx
@@ -169,6 +169,7 @@ const getForm: GetStorageFormFieldsType = (
type: 'input',
label: i18n.t('components.AccessHelper.StorageMetaData.Hive.ConfDir'),
name: 'hiveConfDir',
+ rules: [{ required: true }],
tooltip: i18n.t('components.AccessHelper.StorageMetaData.Hive.ConfDirHelp'),
props: {
placeholder: '/usr/hive/conf',