Skip to content

Commit 30a5c4b

Browse files
authored
Merge pull request #751 from actiontech/feature/issue-3145
Feature/issue 3145
2 parents 9c40c89 + dc1f8b2 commit 30a5c4b

File tree

74 files changed

+4504
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+4504
-241
lines changed

packages/base/src/page/System/GlobalSetting/components/CBOperationLogsExpiredHours.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useTranslation } from 'react-i18next';
22
import { ConfigItem } from '@actiontech/dms-kit';
33
import { EditInputNumber, LabelContent } from '@actiontech/dms-kit';
44
import useValidatorNumber from './useValidatorNumber';
5-
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/sqle/service/common';
5+
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/base/service/common';
66
import { PERMISSIONS, usePermission } from '@actiontech/shared/lib/features';
77
export interface CBOperationLogsExpiredHoursProps {
88
expiredHours: number | undefined;

packages/base/src/page/System/GlobalSetting/components/OperationRecordExpiredHours.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useTranslation } from 'react-i18next';
22
import { ConfigItem } from '@actiontech/dms-kit';
33
import { EditInputNumber, LabelContent } from '@actiontech/dms-kit';
44
import useValidatorNumber from './useValidatorNumber';
5-
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/sqle/service/common';
5+
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/base/service/common';
66
import { PERMISSIONS, usePermission } from '@actiontech/shared/lib/features';
77
export interface OperationRecordExpiredHoursProps {
88
expiredHours: number | undefined;

packages/base/src/page/System/GlobalSetting/components/UrlAddressPrefixTips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useTranslation } from 'react-i18next';
22
import { ConfigItem } from '@actiontech/dms-kit';
33
import { EditInput, LabelContent } from '@actiontech/dms-kit';
4-
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/sqle/service/common';
4+
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/base/service/common';
55
import { PERMISSIONS, usePermission } from '@actiontech/shared/lib/features';
66
export interface UrlAddressPrefixTipsProps {
77
url: string | undefined;

packages/base/src/page/System/GlobalSetting/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useBoolean, useRequest } from 'ahooks';
44
import useHideConfigInputNode from '@actiontech/dms-kit/es/components/ConfigItem/hooks/useHideConfigInputNode';
55
import { DmsApi } from '@actiontech/shared/lib/api';
66
import { ResponseCode, ConfigFieldMapMeta } from '@actiontech/dms-kit';
7-
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/sqle/service/common';
7+
import { IUpdateSystemVariablesReqV1 } from '@actiontech/shared/lib/api/base/service/common';
88
import { Spin } from 'antd';
99
import SystemBasicTitle from '../components/BasicTitle';
1010
import OperationRecordExpiredHours from './components/OperationRecordExpiredHours';

packages/base/src/router/test/__snapshots__/router.base.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ exports[`base/router-base-ee render base route data snap 1`] = `
387387
workflowSqlFileStatementOverview
388388
</div>,
389389
"key": "workflowSqlFileStatementOverview",
390-
"path": ":taskId/files/:fileId/sqls",
390+
"path": ":workflowId/task/:taskId/files/:fileId/sqls",
391391
},
392392
],
393393
"element": <div

packages/base/src/router/test/__snapshots__/router.ce.base.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ exports[`base/router-base-ce render base route data snap 1`] = `
251251
workflowSqlFileStatementOverview
252252
</div>,
253253
"key": "workflowSqlFileStatementOverview",
254-
"path": ":taskId/files/:fileId/sqls",
254+
"path": ":workflowId/task/:taskId/files/:fileId/sqls",
255255
},
256256
],
257257
"element": <div

packages/base/src/router/test/router.ce.sqle.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ describe('base/router-sqle-ce', () => {
170170

171171
it('render SQLFileStatementOverview', async () => {
172172
const { baseElement } = customRender([
173-
`/sqle/project/${projectID}/exec-workflow/123/files/434/sqls`
173+
`/sqle/project/${projectID}/exec-workflow/789/task/123/files/434/sqls`
174174
]);
175175

176176
await act(async () => jest.advanceTimersByTime(300));

packages/base/src/router/test/router.sqle.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('base/router-sqle-ee', () => {
194194

195195
it('render SQLFileStatementOverview', async () => {
196196
const { baseElement } = customRender([
197-
`/sqle/project/${projectID}/exec-workflow/123/files/434/sqls`
197+
`/sqle/project/${projectID}/exec-workflow/789/task/123/files/434/sqls`
198198
]);
199199

200200
await act(async () => jest.advanceTimersByTime(300));

packages/dms-kit/src/data/routePaths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export const ROUTE_PATHS = {
207207
},
208208
sql_files_overview: {
209209
prefix: '/sqle/project/:projectID/exec-workflow',
210-
path: ':taskId/files/:fileId/sqls',
210+
path: ':workflowId/task/:taskId/files/:fileId/sqls',
211211
query: 'instance_name&schema'
212212
}
213213
},

packages/shared/lib/api/sqle/service/common.d.ts

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,14 +2069,6 @@ export interface IGetSystemModuleRedDotsRes {
20692069
message?: string;
20702070
}
20712071

2072-
export interface IGetSystemVariablesResV1 {
2073-
code?: number;
2074-
2075-
data?: ISystemVariablesResV1;
2076-
2077-
message?: string;
2078-
}
2079-
20802072
export interface IGetTableMetadataResV1 {
20812073
code?: number;
20822074

@@ -2740,6 +2732,8 @@ export interface IOptimizationsummary {
27402732
}
27412733

27422734
export interface IOptimizeSQLReq {
2735+
db_type?: string;
2736+
27432737
explain_info?: string;
27442738

27452739
instance_name?: string;
@@ -2813,6 +2807,10 @@ export interface IProjectScore {
28132807
score?: number;
28142808
}
28152809

2810+
export interface IReExecuteTaskOnWorkflowReq {
2811+
exec_sql_ids?: number[];
2812+
}
2813+
28162814
export interface IRecordSource {
28172815
name?: RecordSourceNameEnum;
28182816

@@ -3445,14 +3443,6 @@ export interface IStatisticsAuditedSQLResV1 {
34453443
risk_rate?: number;
34463444
}
34473445

3448-
export interface ISystemVariablesResV1 {
3449-
cb_operation_logs_expired_hours?: number;
3450-
3451-
operation_record_expired_hours?: number;
3452-
3453-
url?: string;
3454-
}
3455-
34563446
export interface ITable {
34573447
name?: string;
34583448
}
@@ -3853,14 +3843,6 @@ export interface IUpdateStagesInstanceDep {
38533843
stage_instance_id?: string;
38543844
}
38553845

3856-
export interface IUpdateSystemVariablesReqV1 {
3857-
cb_operation_logs_expired_hours?: number;
3858-
3859-
operation_record_expired_hours?: number;
3860-
3861-
url?: string;
3862-
}
3863-
38643846
export interface IUpdateTaskBackupStrategyReq {
38653847
strategy?: UpdateTaskBackupStrategyReqStrategyEnum;
38663848
}

0 commit comments

Comments
 (0)