Skip to content

Commit 74cb7bd

Browse files
Merge pull request #466 from zenml-io/dev
Dev
2 parents 9ee7ff1 + 07524ef commit 74cb7bd

File tree

326 files changed

+1960
-11048
lines changed

Some content is hidden

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

326 files changed

+1960
-11048
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: 14.20.0
21+
node-version: 18.16.0
2222
- name: Install yarn
2323
run: npm install --global yarn
2424
- name: Build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ build/
110110
# TernJS port file
111111
.tern-port
112112

113+
# IntelliJ IDE directories
114+
.idea/
115+
113116
!.env
114117

115118
build

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The app takes the following env variables:
106106
REACT_APP_BASE_API_URL="<YOUR_ZENML_SERVER_DEPOLOYMENT_URL>/api/v1"
107107
```
108108

109-
To learn how to get the `YOUR_ZENML_SERVER_DEPOLOYMENT_URL`, read the [deployment guide](https://docs.zenml.io/platform-guide/set-up-your-mlops-platform/deploy-zenml).
109+
To learn how to get the `YOUR_ZENML_SERVER_DEPOLOYMENT_URL`, read the [deployment guide](https://docs.zenml.io/user-guide/starter-guide/switch-to-production).
110110

111111
Lastly, if you would like to use Docker, then the ZenML team provides [DockerHub] images to serve the ZenML Server and Dashboard in one image:
112112

@@ -122,7 +122,7 @@ The ZenML Dashboard is a Javascript React-based application that lives inside th
122122

123123
> **Note** - The ZenML Dashboard is meant to be used with the ZenML Server as a backend and cannot be used standalone.
124124
125-
The dashboard build files come bundled into the [ZenML PyPi package](https://pypi.org/workspace/zenml/) and can be [served locally](https://docs.zenml.io/platform-guide/set-up-your-mlops-platform/deploy-zenml/deploy-with-zenml-cli) and/or [deployed on the cloud](https://docs.zenml.io) through the main ZenML python package.
125+
The dashboard build files come bundled into the [ZenML PyPi package](https://pypi.org/workspace/zenml/) and can be [served locally](https://docs.zenml.io/user-guide/starter-guide#explore-the-dashboard) and/or [deployed on the cloud](https://docs.zenml.io) through the main ZenML python package.
126126

127127
Basically, each ZenML `Python` package comes with the build files (generated by `yarn build`) of a certain version of this dashboard (all build files of the dashboard can be seen in the [releases](https://github.com/zenml-io/zenml-dashboard/releases) section of this GitHub repo). Therefore, each ZenML PyPi package has bundled in it a corresponding version of this dashboard.
128128

@@ -144,7 +144,7 @@ You can deploy this dashboard on supported cloud providers with ZenML python pac
144144
zenml deploy
145145
```
146146

147-
The above command deploys the dashboard in the [same process as the ZenML Server](https://docs.zenml.io/platform-guide/set-up-your-mlops-platform/deploy-zenml), and automates a lot of the nitty gritties for you.
147+
The above command deploys the dashboard in the [same process as the ZenML Server](https://docs.zenml.io/user-guide/starter-guide/switch-to-production), and automates a lot of the nitty gritties for you.
148148

149149
However, the option to deploy standalone is also available. `yarn build` creates a build directory with a production build of the dashboard. Set up your favorite HTTP server so that a visitor to your site is served index.html. Here are [8 ways to deploy a React app for free](https://blog.logrocket.com/8-ways-deploy-react-app-free/) as a starting point.
150150

package.json

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
{
22
"name": "web",
3-
"version": "0.1.0",
3+
"version": "0.10.0",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.10.5",
7-
"@stripe/react-stripe-js": "^1.1.2",
8-
"@stripe/stripe-js": "^1.9.0",
97
"@table-library/react-table-library": "^4.0.23",
10-
"@testing-library/dom": "^7.21.7",
118
"@testing-library/jest-dom": "^5.11.2",
12-
"@testing-library/react": "^10.4.7",
13-
"@testing-library/user-event": "^12.1.0",
149
"@types/classnames": "^2.2.10",
15-
"@types/country-list": "^2.1.0",
1610
"@types/dagre": "^0.7.48",
17-
"@types/jest": "^26.0.8",
1811
"@types/node": "^14.0.27",
1912
"@types/papaparse": "^5.3.7",
2013
"@types/react": "^16.9.44",
@@ -23,20 +16,15 @@
2316
"@types/react-outside-click-handler": "^1.3.0",
2417
"@types/react-redux": "^7.1.9",
2518
"@types/react-router-dom": "^5.1.5",
26-
"@types/react-scroll": "^1.5.5",
2719
"@types/react-syntax-highlighter": "^11.0.4",
2820
"@types/react-vis": "^1.11.11",
2921
"@types/redux-logger": "^3.0.8",
30-
"@types/styled-components": "^5.1.26",
3122
"axios": "^0.19.2",
3223
"axios-mock-adapter": "^1.18.2",
3324
"bootstrap": "^4.5.0",
3425
"classnames": "^2.2.6",
35-
"country-list": "^2.2.0",
3626
"dagre": "^0.8.5",
3727
"date-fns": "^2.15.0",
38-
"eslint-import-resolver-babel-module": "^5.1.2",
39-
"eslint-plugin-react-hooks": "^4.0.8",
4028
"framer-motion": "^2.3.0",
4129
"i18next": "^19.6.3",
4230
"i18next-browser-languagedetector": "^5.0.0",
@@ -45,7 +33,6 @@
4533
"lodash": "^4.17.21",
4634
"lottie-react": "^2.4.0",
4735
"moment": "^2.29.4",
48-
"node-sass": "^4.14.1",
4936
"papaparse": "^5.4.1",
5037
"query-string": "^6.13.1",
5138
"react": "^16.13.1",
@@ -64,21 +51,18 @@
6451
"react-select": "^5.7.0",
6552
"react-syntax-highlighter": "^13.3.1",
6653
"react-tooltip": "^4.2.10",
67-
"react-tooltip-lite": "^1.12.0",
6854
"react-vis": "^1.11.12",
6955
"redux": "^4.0.5",
7056
"redux-logger": "^3.0.6",
7157
"redux-persist": "^6.0.0",
7258
"redux-saga": "^1.1.3",
73-
"redux-saga-test-plan": "^4.0.0-rc.3",
7459
"reselect": "^4.0.0",
75-
"styled-components": "^5.3.6",
7660
"typescript": "^3.9.7"
7761
},
7862
"scripts": {
79-
"start": "react-scripts start",
80-
"build": "react-scripts build",
81-
"test": "react-scripts test --maxWorkers=4",
63+
"start": "react-scripts --openssl-legacy-provider start",
64+
"build": "react-scripts --openssl-legacy-provider build",
65+
"test": "react-scripts --openssl-legacy-provider test --maxWorkers=4",
8266
"eject": "react-scripts eject",
8367
"lint": "eslint './src/**/*.ts*'",
8468
"fix-lint": "eslint './src/**/*.ts*' --fix",
@@ -107,17 +91,12 @@
10791
"@typescript-eslint/eslint-plugin": "^3.7.1",
10892
"@typescript-eslint/parser": "^3.7.1",
10993
"autoprefixer": "^10.4.8",
110-
"babel-plugin-inline-react-svg": "^1.1.1",
11194
"eslint-config-prettier": "^6.11.0",
112-
"eslint-plugin-import": "^2.22.0",
11395
"eslint-plugin-prettier": "^3.1.4",
11496
"eslint-plugin-react": "^7.20.5",
115-
"eslint-plugin-redux-saga": "^1.1.3",
11697
"husky": "^8.0.0",
117-
"postcss": "^8.4.16",
11898
"prettier": "^2.0.5",
119-
"react-hooks-testing-library": "^0.6.0",
120-
"react-test-renderer": "^16.13.1"
99+
"sass": "^1.66.1"
121100
},
122101
"engines": {
123102
"npm": ">=6.14.17",

src/api/connectors/getConnectorByIdApi.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ const pipelineId = 'runId';
1616

1717
describe('getconnectorByIdApi', () => {
1818
it('calls fetch api with correct params', () => {
19-
// getconnectorByIdApi({ authenticationToken, pipelineId });
2019
expect(mockFetchApiWithAuthRequest).toHaveBeenCalledWith({
2120
method: httpMethods.get,
22-
url: apiUrl(endpoints.connectors.get(pipelineId)),
21+
url: apiUrl(endpoints.Connectors.get(pipelineId)),
2322
authenticationToken,
2423
});
2524
});

src/api/connectors/getConnectorComponentsApi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getConnectorComponentsApi = ({
1212
size,
1313
name,
1414
filtersParam,
15-
// id,
15+
1616
authenticationToken,
1717
}: {
1818
connector_id?: string;
@@ -23,7 +23,7 @@ const getConnectorComponentsApi = ({
2323
size: number;
2424
name?: string;
2525
filtersParam?: object;
26-
// id?: any;
26+
2727
authenticationToken: string;
2828
}): Promise<any> =>
2929
fetchApiWithAuthRequest({
@@ -36,7 +36,6 @@ const getConnectorComponentsApi = ({
3636
size,
3737
name,
3838
...filtersParam,
39-
// id,
4039
},
4140
method: httpMethods.get,
4241
authenticationToken,

src/api/connectors/getConnectorsTypesApi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getConnectorsTypesApi = ({
1212
size,
1313
connector_type,
1414
filtersParam,
15-
// id,
15+
1616
authenticationToken,
1717
}: {
1818
component_id?: any;
@@ -23,7 +23,7 @@ const getConnectorsTypesApi = ({
2323
size: number;
2424
connector_type?: string;
2525
filtersParam?: object;
26-
// id?: any;
26+
2727
authenticationToken: string;
2828
}): Promise<any> =>
2929
fetchApiWithAuthRequest({
@@ -36,7 +36,6 @@ const getConnectorsTypesApi = ({
3636
size,
3737
connector_type,
3838
...filtersParam,
39-
// id,
4039
},
4140
method: httpMethods.get,
4241
authenticationToken,

src/api/connectors/getMyConnectorsApi.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ const authenticationToken = 'token';
1515

1616
describe('getMyconnectorsApi', () => {
1717
it('calls fetch api with correct params', () => {
18-
// getMyconnectorsApi({ authenticationToken });
1918
expect(mockFetchApiWithAuthRequest).toHaveBeenCalledWith({
2019
method: httpMethods.get,
21-
url: apiUrl(endpoints.connectors.my),
20+
url: apiUrl(endpoints.Connectors.my),
2221
authenticationToken,
2322
});
2423
});

src/api/connectors/getMyConnectorsApi.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getMyConnectorsApi = ({
1212
size,
1313
name,
1414
filtersParam,
15-
// id,
15+
1616
authenticationToken,
1717
}: {
1818
component_id?: any;
@@ -23,7 +23,7 @@ const getMyConnectorsApi = ({
2323
size: number;
2424
name?: string;
2525
filtersParam?: object;
26-
// id?: any;
26+
2727
authenticationToken: string;
2828
}): Promise<TStack> =>
2929
fetchApiWithAuthRequest({
@@ -36,7 +36,6 @@ const getMyConnectorsApi = ({
3636
size,
3737
name,
3838
...filtersParam,
39-
// id,
4039
},
4140
method: httpMethods.get,
4241
authenticationToken,

src/api/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ export const httpMethods = {
88

99
export const BASE_API_URL = process.env.REACT_APP_BASE_API_URL as string;
1010
export const HUB_API_URL = process.env.REACT_APP_HUB_API_URL as string;
11-
12-
// https://appserver.zenml.io/api/v1
13-
// http://localhost:8080/api/v1

0 commit comments

Comments
 (0)