From 77fb2d1459b3ad62e9e35ba99575c431dc96c1e5 Mon Sep 17 00:00:00 2001 From: Li Xiaoguang Date: Tue, 21 Mar 2023 20:06:43 +0800 Subject: [PATCH] [WebConsole] Sync to github manually --- .../src/services/mocks/v2/algorithms/__id__/index.ts | 2 +- .../src/services/mocks/v2/data_sources/index.ts | 2 +- .../client/src/services/mocks/v2/files/index.ts | 2 +- .../mocks/v2/intersection_datasets/examples.ts | 12 ++++++------ .../client/src/services/mocks/v2/models/index.ts | 8 ++++---- .../client/src/views/ModelCenter/shared.test.ts | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/web_console_v2/client/src/services/mocks/v2/algorithms/__id__/index.ts b/web_console_v2/client/src/services/mocks/v2/algorithms/__id__/index.ts index 3b37e166a..d5eb6bd34 100644 --- a/web_console_v2/client/src/services/mocks/v2/algorithms/__id__/index.ts +++ b/web_console_v2/client/src/services/mocks/v2/algorithms/__id__/index.ts @@ -15,7 +15,7 @@ const get = (config: AxiosRequestConfig) => { username: 'admin', participant_id: null, path: - 'hdfs:///home/byte_aml_tob/fedlearner_v2/algorithms/hang-e2e-test-122323-v3-20220106_100837-2ddea', + 'hdfs:///trimmed', parameter: { variables: [ { diff --git a/web_console_v2/client/src/services/mocks/v2/data_sources/index.ts b/web_console_v2/client/src/services/mocks/v2/data_sources/index.ts index 153e52569..e3cc1e204 100644 --- a/web_console_v2/client/src/services/mocks/v2/data_sources/index.ts +++ b/web_console_v2/client/src/services/mocks/v2/data_sources/index.ts @@ -20,7 +20,7 @@ const list: DataSource[] = [ name: 'mock数据源2', created_at: 1609582145, url: - 'hdfs://home/byte_aml_tob/fedlearner_v2/dataset/20220218_141000_e2e-test-dataset-20220218-060927', + 'hdfs:///trimmed', project_id: 1, dataset_format: 'TABULAR', dataset_type: 'STREAMING', diff --git a/web_console_v2/client/src/services/mocks/v2/files/index.ts b/web_console_v2/client/src/services/mocks/v2/files/index.ts index fc467939a..8caadf34a 100644 --- a/web_console_v2/client/src/services/mocks/v2/files/index.ts +++ b/web_console_v2/client/src/services/mocks/v2/files/index.ts @@ -30,7 +30,7 @@ export const post = { { display_file_name: 'mock-file.tar.gz', internal_path: - 'hdfs:///home/byte_aml_tob/fedlearner_v2/upload/20211015_041720010240/mock-file.tar.gz', + 'hdfs:///trimmed', }, ], }, diff --git a/web_console_v2/client/src/services/mocks/v2/intersection_datasets/examples.ts b/web_console_v2/client/src/services/mocks/v2/intersection_datasets/examples.ts index 393c5cb18..c5e274a60 100644 --- a/web_console_v2/client/src/services/mocks/v2/intersection_datasets/examples.ts +++ b/web_console_v2/client/src/services/mocks/v2/intersection_datasets/examples.ts @@ -12,7 +12,7 @@ export const readyToRun: IntersectionDataset = { kind: 0, name: '求交数据集 2021-05-20-17:31:54', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/u9d9fd94b01324f5ba90-data-join-job', + 'hdfs:///trimmed', peer_name: 'aliyun-test1', project_id: 14, status: 'READY_TO_RUN', @@ -27,7 +27,7 @@ export const invalid: IntersectionDataset = { workflow_id: 121734, name: '求交数据集 2021-08-11-21:27:44', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/u9d9fd94b01324f5ba90-data-join-job', + 'hdfs:///trimmed', comment: '', kind: 0, created_at: 1628688464, @@ -47,7 +47,7 @@ export const running: IntersectionDataset = { workflow_id: 153713, name: '求交数据集 2021-09-02-15:47:02', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/u7e0239d6f0f94271a33-data-join-job', + 'hdfs:///trimmed', comment: '', kind: 0, created_at: 1630568822, @@ -72,7 +72,7 @@ export const completed: IntersectionDataset = { kind: 0, name: '求交数据集 2021-09-09-14:14:57', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/ue24311305a4a4b6397d-psi-data-join-job', + 'hdfs:///trimmed', peer_name: 'aliyun-test1', project_id: 14, status: 'COMPLETED', @@ -87,7 +87,7 @@ export const stopped: IntersectionDataset = { workflow_id: 88949, name: '求交数据集 2021-07-19-21:06:12', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/ua01bceb669ee42a3b6b-data-join-job', + 'hdfs:///trimmed', comment: '', kind: 0, created_at: 1626699972, @@ -107,7 +107,7 @@ export const failed: IntersectionDataset = { workflow_id: 68479, name: '求交数据集 2021-07-01-12:37:00', path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/ua01bceb669ee42a3b6b-data-join-job', + 'hdfs:///trimmed', comment: '', kind: 0, created_at: 1625114220, diff --git a/web_console_v2/client/src/services/mocks/v2/models/index.ts b/web_console_v2/client/src/services/mocks/v2/models/index.ts index e0acbd700..4864a0e82 100644 --- a/web_console_v2/client/src/services/mocks/v2/models/index.ts +++ b/web_console_v2/client/src/services/mocks/v2/models/index.ts @@ -7,7 +7,7 @@ const modelList: Model[] = [ uuid: 'u3a0507d64bc442a2b66', model_type: 'NN_MODEL', model_path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/model_output/u3a0507d64bc442a2b66', + 'hdfs:///trimmed', favorite: false, comment: 'created_by ucce42a49cbff4c4e930-nn-train at 2021-09-27 12:44:32.419496+00:00', group_id: null, @@ -30,7 +30,7 @@ const modelList: Model[] = [ uuid: 'u195c5a39d1e44804a1a', model_type: 'NN_MODEL', model_path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/model_output/u195c5a39d1e44804a1a', + 'hdfs:///trimmed', favorite: false, comment: 'created_by ucce42a49cbff4c4e930-nn-train at 2021-09-27 12:44:37.030088+00:00', group_id: null, @@ -53,7 +53,7 @@ const modelList: Model[] = [ uuid: 'u70ca285687eb4d2fbb0', model_type: 'NN_MODEL', model_path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/model_output/u70ca285687eb4d2fbb0', + 'hdfs:///trimmed', favorite: false, comment: 'created_by ud8b9cb500fc3435cb66-nn-train at 2021-10-09 07:08:48.729397+00:00', group_id: 1, @@ -76,7 +76,7 @@ const modelList: Model[] = [ uuid: 'u4b6e82b75e644c90907', model_type: 'NN_MODEL', model_path: - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/model_output/u4b6e82b75e644c90907', + 'hdfs:///trimmed', favorite: false, comment: 'created_by ud8b9cb500fc3435cb66-nn-train at 2021-10-09 07:08:56.799515+00:00', group_id: 2, diff --git a/web_console_v2/client/src/views/ModelCenter/shared.test.ts b/web_console_v2/client/src/views/ModelCenter/shared.test.ts index 4c6e123e5..ad9e9f2a3 100644 --- a/web_console_v2/client/src/views/ModelCenter/shared.test.ts +++ b/web_console_v2/client/src/views/ModelCenter/shared.test.ts @@ -682,7 +682,7 @@ it('getDataSource', () => { expect(getDataSource('/data_source/abc')).toBe('abc'); expect( getDataSource( - 'hdfs:///home/byte_aml_tob/experiments/fedlearner/data_source/u0bae4aa7dcde477e8ee-psi-data-join-job', + 'hdfs:///trimmed', ), ).toBe('u0bae4aa7dcde477e8ee-psi-data-join-job'); });