Skip to content

Commit 2179738

Browse files
authored
Merge pull request #177 from zenml-io/dev
Dev
2 parents 35ad3a5 + 0f65077 commit 2179738

File tree

39 files changed

+1248
-174
lines changed

39 files changed

+1248
-174
lines changed

src/api/stacks/getMyStacksApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const getMyStacksApi = ({
88
workspace,
99
sort_by,
1010
logical_operator,
11-
page,
11+
index,
1212
size,
1313
filtersParam,
1414
authenticationToken,
@@ -17,7 +17,7 @@ const getMyStacksApi = ({
1717
workspace: string;
1818
sort_by: string;
1919
logical_operator: string;
20-
page: number;
20+
index: number;
2121
size: number;
2222
filtersParam?: object;
2323
authenticationToken: string;
@@ -28,7 +28,7 @@ const getMyStacksApi = ({
2828
component_id,
2929
sort_by,
3030
logical_operator,
31-
page,
31+
index,
3232
size,
3333
...filtersParam,
3434
},

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export const getStackComponentListAction = ({
1313
onFailure,
1414
}: {
1515
workspace: string;
16-
sort_by: string;
17-
logical_operator: string;
16+
sort_by?: string;
17+
logical_operator?: string;
1818
type: TId;
1919
page: number;
2020
size: number;
2121
filtersParam?: object;
22-
onSuccess?: () => void;
23-
onFailure?: () => void;
22+
onSuccess?: (res: any) => void;
23+
onFailure?: (res: any) => void;
2424
}): TRequestAction => ({
2525
type: stackComponentActionTypes.getStackComponentList.request,
2626
payload: {

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/reducers/flavorsReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ 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,
35+
page: pagination.index,
36+
size: pagination.max_size,
3737
totalPages: pagination.total_pages,
3838
totalitem: pagination.total,
3939
},

src/redux/reducers/organizationsReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const newState = (
5252
ids: idsInsert(state.ids, organizations),
5353
byId: byKeyInsert(state.byId, organizations),
5454
paginated: {
55-
page: pagination.page,
56-
size: pagination.size,
55+
page: pagination.index,
56+
size: pagination.max_size,
5757
totalPages: pagination.total_pages,
5858
totalitem: pagination.total,
5959
},

src/redux/reducers/pipelinesReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const newState = (
3434
ids: idsInsert(state.ids, pipelines),
3535
byId: byKeyInsert(state.byId, pipelines),
3636
paginated: {
37-
page: pagination.page,
38-
size: pagination.size,
37+
page: pagination.index,
38+
size: pagination.max_size,
3939
totalPages: pagination.total_pages,
4040
totalitem: pagination.total,
4141
},

src/redux/reducers/runsReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const newState = (state: State, runs: TRun[], pagination?: any): State => ({
5959
ids: idsInsert(state.ids, runs),
6060
byId: byKeyInsert(state.byId, runs),
6161
paginated: {
62-
page: pagination?.page,
63-
size: pagination?.size,
62+
page: pagination?.index,
63+
size: pagination?.max_size,
6464
totalPages: pagination?.total_pages,
6565
totalitem: pagination?.total,
6666
},

src/redux/reducers/stackComponentsReducer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const newState = (state: State, stacks: TStack[], pagination?: any): State => ({
3232
ids: idsInsert(state.ids, stacks),
3333
byId: byKeyInsert(state.byId, stacks),
3434
paginated: {
35-
page: pagination.page,
36-
size: pagination.size,
35+
page: pagination.index,
36+
size: pagination.max_size,
3737
totalPages: pagination.total_pages,
3838
totalitem: pagination.total,
3939
},

0 commit comments

Comments
 (0)