File tree Expand file tree Collapse file tree 9 files changed +5
-266
lines changed
ApplicationGroup/Details/EnvCDDetails/__mock__ Expand file tree Collapse file tree 9 files changed +5
-266
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ src/components/app/details/appDetails/utils.tsx
92
92
src /components /app /details /cIDetails /CIDetails.tsx
93
93
src /components /app /details /cIDetails /cIDetails.util.tsx
94
94
src /components /app /details /cdDetails /CDDetails.tsx
95
- src /components /app /details /cdDetails /service.ts
96
95
src /components /app /details /cicdHistory /History.components.tsx
97
96
src /components /app /details /main.tsx
98
97
src /components /app /details /metrics /BenchmarkModal.tsx
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { ResponseType } from '@devtron-labs/devtron-fe-common-lib'
18
-
19
- import { ModuleConfigResponse } from '../../../../app/details/appDetails/appDetails.type'
17
+ import { ModuleConfigResponse , ResponseType } from '@devtron-labs/devtron-fe-common-lib'
20
18
21
19
export async function mockCDList ( ) : Promise < ResponseType > {
22
20
const response = {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
DeploymentStatusDetailsResponse ,
19
19
get ,
20
20
getUrlWithSearchParams ,
21
+ ModuleConfigResponse ,
21
22
ResponseType ,
22
23
trash ,
23
24
} from '@devtron-labs/devtron-fe-common-lib'
@@ -30,7 +31,6 @@ import {
30
31
DataSourceDetailsDTO ,
31
32
DataSourceDetailsQueryParams ,
32
33
DataSourceDetailsType ,
33
- ModuleConfigResponse ,
34
34
} from './appDetails.type'
35
35
36
36
export const getDataSourceDetailsFromEnvironment = async ( envName : string ) : Promise < DataSourceDetailsType > => {
Original file line number Diff line number Diff line change @@ -65,12 +65,6 @@ export interface AppDetailsPathParams {
65
65
envId ?: string
66
66
}
67
67
68
- export interface ModuleConfigResponse extends ResponseType {
69
- result ?: {
70
- enabled : boolean
71
- }
72
- }
73
-
74
68
export interface DataSourceDetailsDTO {
75
69
id : number
76
70
name : string
@@ -92,18 +86,6 @@ export interface ClusterConnectionResponse extends ResponseType {
92
86
}
93
87
}
94
88
95
- export type DeleteResponseType = {
96
- clusterName : string
97
- clusterReachable : boolean
98
- deleteInitiated : boolean
99
- }
100
-
101
- export interface DeploymentStatusDetailRowType {
102
- type : string
103
- hideVerticalConnector ?: boolean
104
- deploymentDetailedData : DeploymentStatusDetailsBreakdownDataType
105
- }
106
-
107
89
export type SocketConnectionType = 'CONNECTED' | 'CONNECTING' | 'DISCONNECTED' | 'DISCONNECTING'
108
90
109
91
export interface NodeSelectorsType {
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export const getPipelineDeploymentConfigSelectorConfig = ({
109
109
onChange : handleChangeDeploymentConfig ,
110
110
groupValue : deploy ,
111
111
} ,
112
- ...( pipelineStrategyOptions . length && deploymentStrategy
112
+ ...( pipelineStrategyOptions . length > 1 && deploymentStrategy
113
113
? [
114
114
{
115
115
title : 'Select strategy type' ,
Original file line number Diff line number Diff line change 16
16
17
17
import { useLocation } from 'react-router-dom'
18
18
19
- import { DeploymentWithConfigType } from '@devtron-labs/devtron-fe-common-lib'
19
+ import { DeploymentHistoryDetail , DeploymentWithConfigType } from '@devtron-labs/devtron-fe-common-lib'
20
20
21
21
import { URLS } from '@Config/routes'
22
22
23
23
import { deepEqual } from '../../../common'
24
- import { DeploymentHistoryDetail } from '../cdDetails/cd.type'
25
24
import { TRIGGER_VIEW_PARAMS } from './Constants'
26
25
import { TriggerViewDeploymentConfigType } from './types'
27
26
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import {
32
32
CommonNodeAttr ,
33
33
ConsequenceType ,
34
34
DeploymentAppTypes ,
35
+ DeploymentHistoryDetail ,
35
36
DeploymentNodeType ,
36
37
DeploymentWithConfigType ,
37
38
DynamicDataTableCellValidationState ,
@@ -52,7 +53,6 @@ import { EnvironmentWithSelectPickerType } from '@Components/CIPipelineN/types'
52
53
import { AppContextType } from '@Components/common'
53
54
54
55
import { HostURLConfig } from '../../../../services/service.types'
55
- import { DeploymentHistoryDetail } from '../cdDetails/cd.type'
56
56
import { Offset , WorkflowDimensions } from './config'
57
57
import { TIME_STAMP_ORDER } from './Constants'
58
58
You can’t perform that action at this time.
0 commit comments