Skip to content

Commit fecf4bf

Browse files
authored
Merge pull request #52 from zenml-io/talha/feedback-fixes
Talha/feedback fixes
2 parents 7fadfe7 + 0bb364f commit fecf4bf

File tree

74 files changed

+587
-1309
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

+587
-1309
lines changed

src/api/endpoints.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ export const endpoints = {
2727
},
2828
pipelines: {
2929
my: '/pipelines?hydrated=true',
30-
get: (pipelineId: TId): string => `/pipelines/${pipelineId}&hydrated=true`,
30+
get: (pipelineId: TId): string =>
31+
`/pipelines/${pipelineId}?unlisted=false&hydrated=true`,
3132
},
3233
Stacks: {
3334
my: '/stacks?hydrated=true',
34-
get: (stackId: TId): string => `/Stacks/${stackId}&hydrated=true`,
35+
get: (stackId: TId): string =>
36+
`/stacks/${stackId}?unlisted=false&hydrated=true`,
3537
},
3638
StackComponents: {
3739
types: '/component-types',
38-
my: (type: string): string => `/components?type=${type}&hydrated=true`,
40+
my: (type: string): string =>
41+
`/components?type=${type}?unlisted=false&hydrated=true`,
3942
get: (stackComponentId: TId): string =>
4043
`/components/${stackComponentId}?hydrated=true`,
4144
},
@@ -50,14 +53,13 @@ export const endpoints = {
5053
},
5154
stackComponent: {
5255
get: (stackComponentId: TId): string =>
53-
`/runs?component_id=${stackComponentId}&hydrated=true`,
56+
`/runs?component_id=${stackComponentId}&unlisted=false&hydrated=true`,
5457
},
5558
graphById: {
5659
get: (runId: TId): string => `/runs/${runId}/graph`,
5760
},
5861
all: `/runs?unlisted=false&hydrated=true`,
59-
get: (pipelineId: TId, runId: TId): string =>
60-
`/pipelines/${pipelineId}/runs/${runId}`,
62+
get: (runId: TId): string => `/runs/${runId}?unlisted=false&hydrated=true`,
6163
},
6264
billing: {
6365
my: '/billing/stripe/session',

src/api/fetchApi/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ export const fetchApi = ({
1919
headers?: any;
2020
params?: any;
2121
}): Promise<any> => {
22-
// if (process.env.REACT_APP_MOCKAPI_RESPONSE) {
23-
// return new Promise((resolve, reject) => {
24-
// reject();
25-
// });
26-
// }
2722
return axios({
2823
method: method || httpMethods.get,
2924
url,
@@ -46,11 +41,6 @@ export const fetchApiWithAuthRequest = ({
4641
authenticationToken: string;
4742
headers?: any;
4843
}): Promise<any> => {
49-
// if (process.env.REACT_APP_MOCKAPI_RESPONSE) {
50-
// return new Promise((resolve, reject) => {
51-
// reject();
52-
// });
53-
// }
5444
return axios({
5545
method: method || httpMethods.get,
5646
url,

0 commit comments

Comments
 (0)