Skip to content

Commit 0bb7d62

Browse files
committed
Merge remote-tracking branch 'origin/UAT' into main
2 parents f844524 + 3e993fb commit 0bb7d62

File tree

81 files changed

+3581
-543
lines changed

Some content is hidden

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

81 files changed

+3581
-543
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"react-dom": "^16.13.1",
5252
"react-flow-renderer": "^10.3.16",
5353
"react-joyride": "^2.5.3",
54+
"react-json-pretty": "^2.2.0",
5455
"react-outside-click-handler": "^1.3.0",
5556
"react-redux": "^7.2.1",
5657
"react-router-dom": "^5.2.0",
@@ -78,7 +79,6 @@
7879
"tslint": "tsc",
7980
"all": "eslint './src/**/*.ts*' & react-scripts test --all & tsc"
8081
},
81-
8282
"browserslist": {
8383
"production": [
8484
">0.2%",

src/api/stackComponents/getStackComponentListApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const getMyStackComponentsApi = ({
1111
size,
1212
type,
1313
filtersParam,
14+
id,
1415
workspace,
1516
}: {
1617
workspace: string;
@@ -19,12 +20,13 @@ const getMyStackComponentsApi = ({
1920
logical_operator: string;
2021
type: string;
2122
filtersParam?: object;
23+
id?: any;
2224
page: number;
2325
size: number;
2426
}): Promise<TStack> =>
2527
fetchApiWithAuthRequest({
2628
url: apiUrl(endpoints.StackComponents.my(type, workspace)),
27-
params: { sort_by, logical_operator, page, size, ...filtersParam },
29+
params: { sort_by, logical_operator, page, size, ...filtersParam, id },
2830
method: httpMethods.get,
2931
authenticationToken,
3032
});

src/api/stacks/getMyStacksApi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const getMyStacksApi = ({
1111
page,
1212
size,
1313
filtersParam,
14+
id,
1415
authenticationToken,
1516
}: {
1617
component_id?: any;
@@ -20,6 +21,7 @@ const getMyStacksApi = ({
2021
page: number;
2122
size: number;
2223
filtersParam?: object;
24+
id?: any;
2325
authenticationToken: string;
2426
}): Promise<TStack> =>
2527
fetchApiWithAuthRequest({
@@ -31,6 +33,7 @@ const getMyStacksApi = ({
3133
page,
3234
size,
3335
...filtersParam,
36+
id,
3437
},
3538
method: httpMethods.get,
3639
authenticationToken,

src/redux/actions/flavors/getFlavorTypeAction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export const getFlavorTypeAction = ({
99
onSuccess,
1010
onFailure,
1111
}: {
12-
page: number;
13-
size: number;
14-
type: string;
12+
page?: number;
13+
size?: number;
14+
type?: string;
1515
name?: string;
16-
onSuccess?: () => void;
16+
onSuccess?: (res: any) => void;
1717
onFailure?: () => void;
1818
}): TRequestAction => ({
1919
type: flavorActionTypes.getFlavorAll.request,

src/redux/actions/runs/getAllRunsAction.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ export const getAllRunsAction = ({
2626
isAuthenticated: true,
2727
failureActionType: runActionTypes.getAllRuns.failure,
2828
successActionType: runActionTypes.getAllRuns.success,
29-
params: { workspace, sort_by, logical_operator, page, size, filtersParam },
29+
params: {
30+
workspace,
31+
sort_by,
32+
logical_operator,
33+
page,
34+
size,
35+
filtersParam,
36+
},
3037
onSuccess,
3138
onFailure,
3239
},

src/redux/actions/stackComponents/getStackComponentListAction.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ export const getStackComponentListAction = ({
99
page,
1010
size,
1111
filtersParam,
12+
id,
1213
onSuccess,
1314
onFailure,
1415
}: {
1516
workspace: string;
16-
sort_by: string;
17-
logical_operator: string;
17+
sort_by?: string;
18+
logical_operator?: string;
1819
type: TId;
1920
page: number;
2021
size: number;
2122
filtersParam?: object;
22-
onSuccess?: () => void;
23-
onFailure?: () => void;
23+
id?: any;
24+
onSuccess?: (res: any) => void;
25+
onFailure?: (res: any) => void;
2426
}): TRequestAction => ({
2527
type: stackComponentActionTypes.getStackComponentList.request,
2628
payload: {
@@ -36,6 +38,7 @@ export const getStackComponentListAction = ({
3638
page,
3739
size,
3840
filtersParam,
41+
id,
3942
},
4043
onSuccess,
4144
onFailure,

src/redux/actions/stacks/getAllRunsByStackId.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ export const getAllRunsByStackId = ({
2727
isAuthenticated: true,
2828
failureActionType: stackActionTypes.getRunsByStackId.failure,
2929
successActionType: stackActionTypes.getRunsByStackId.success,
30-
params: { sort_by, logical_operator, stackId, page, size, filtersParam },
30+
params: {
31+
sort_by,
32+
logical_operator,
33+
stackId,
34+
page,
35+
size,
36+
filtersParam,
37+
},
3138
onSuccess,
3239
onFailure,
3340
},

src/redux/actions/stacks/getMyStacksAction.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const getMyStacksAction = ({
1010
name,
1111
size,
1212
filtersParam,
13+
id,
1314
onSuccess,
1415
onFailure,
1516
}: {
@@ -21,6 +22,7 @@ export const getMyStacksAction = ({
2122
page?: number;
2223
size?: number;
2324
filtersParam?: object;
25+
id?: any;
2426
onSuccess?: () => void;
2527
onFailure?: () => void;
2628
}): TRequestAction => ({
@@ -39,6 +41,7 @@ export const getMyStacksAction = ({
3941
page,
4042
size,
4143
filtersParam,
44+
id,
4245
},
4346
onSuccess,
4447
onFailure,

src/redux/reducers/flavorsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const newState = (state: State, flavors: any[], pagination?: any): State => ({
3232
ids: idsInsert(state.ids, flavors),
3333
byId: byKeyInsert(state.byId, flavors),
3434
paginated: {
35-
page: pagination.page,
36-
size: pagination.size,
37-
totalPages: pagination.total_pages,
38-
totalitem: pagination.total,
35+
page: pagination?.index,
36+
size: pagination?.max_size,
37+
totalPages: pagination?.total_pages,
38+
totalitem: pagination?.total,
3939
},
4040
});
4141

src/redux/reducers/organizationsReducer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ const newState = (
5252
ids: idsInsert(state.ids, organizations),
5353
byId: byKeyInsert(state.byId, organizations),
5454
paginated: {
55-
page: pagination.page,
56-
size: pagination.size,
57-
totalPages: pagination.total_pages,
58-
totalitem: pagination.total,
55+
page: pagination?.index,
56+
size: pagination?.max_size,
57+
totalPages: pagination?.total_pages,
58+
totalitem: pagination?.total,
5959
},
6060
});
6161

0 commit comments

Comments
 (0)