Skip to content

Commit 4be399b

Browse files
authored
Merge pull request #120 from zenml-io/dev
Dev
2 parents c00ed0e + a3e66fd commit 4be399b

File tree

121 files changed

+1645
-1178
lines changed

Some content is hidden

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

121 files changed

+1645
-1178
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ dist
8787

8888
# Gatsby files
8989
.cache/
90-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
90+
# Comment in the public line in if your workspace uses Gatsby and *not* Next.js
9191
# https://nextjs.org/blog/next-9-1#public-directory-support
9292
# public
9393

CONTRIBUTING.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ you finalize your pull requests.
1313

1414
## ⚡️ Quicklinks
1515

16-
* [Code of Conduct](#code-of-conduct)
17-
* [Getting Started](#getting-started)
18-
* [Issues](#issues)
19-
* [Pull Requests](#pull-requests)
20-
* [Getting Help](#getting-help)
16+
- [Code of Conduct](#code-of-conduct)
17+
- [Getting Started](#getting-started)
18+
- [Issues](#issues)
19+
- [Pull Requests](#pull-requests)
20+
- [Getting Help](#getting-help)
2121

2222
## 🧑‍⚖️ Code of Conduct
2323

@@ -35,8 +35,8 @@ general guidelines that cover both:
3535
at [[email protected]](mailto:[email protected]), monitored by
3636
our security team.
3737
- Search for existing Issues and PRs before creating your own.
38-
- Search on the [public Crowd Dev](https://open.crowd.dev/zenml) page to see
39-
if the issue has been addressed before.
38+
- Search on the [public Crowd Dev](https://open.crowd.dev/zenml) page to see
39+
if the issue has been addressed before.
4040
- We work hard to make sure issues are handled on time, but it could take a
4141
while to investigate the root cause depending on the impact.
4242

@@ -125,9 +125,8 @@ risk! It's better to discuss privately and give us a chance to find a solution
125125
first, to limit the potential impact
126126
as much as possible.
127127

128-
129128
## 🆘 Getting Help
130129

131-
Join us in the [ZenML Slack Community](https://zenml.io/slack-invite/) to
132-
interact directly with the core team and community at large. This is a good
133-
place to ideate, discuss concepts or ask for help.
130+
Join us in the [ZenML Slack Community](https://zenml.io/slack-invite/) to
131+
interact directly with the core team and community at large. This is a good
132+
place to ideate, discuss concepts or ask for help.

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,13 @@
7474

7575
<br />
7676

77-
7877
# ⚡ Getting Started
7978

8079
## 🔋 Installation
8180

8281
The installation is as follows:
8382

84-
First, there is a pre-requisite to use [`node`](https://www.npmjs.com/) version 14.20.0 exactly. One can do this by installing the [`nvm`](https://github.com/nvm-sh/nvm) utility and then doing
83+
First, there is a pre-requisite to use [`node`](https://www.npmjs.com/) version 14.20.0 exactly. One can do this by installing the [`nvm`](https://github.com/nvm-sh/nvm) utility and then doing
8584

8685
```
8786
nvm install 14.20.0
@@ -121,11 +120,11 @@ Which will serve the dashboard with the server at `http://localhost:8080`, with
121120

122121
## 👨‍👦 Relationship with ZenML
123122

124-
The ZenML Dashboard is a Javascript React-based application that lives inside this repository, which is a sister repository of the main [ZenML Python package repo](https://github.com/zenml-io/zenml).
123+
The ZenML Dashboard is a Javascript React-based application that lives inside this repository, which is a sister repository of the main [ZenML Python package repo](https://github.com/zenml-io/zenml).
125124

126125
> **Note** - The ZenML Dashboard is meant to be used with the ZenML Server as a backend and cannot be used standalone.
127126
128-
The dashboard build files come bundled into the [ZenML PyPi package](https://pypi.org/project/zenml/) and can be [served locally](https://docs.zenml.io/getting-started/deploying-zenml/using-cli.md) and/or [deployed on the cloud](https://docs.zenml.io/getting-started/deploying-zenml/deployment.md) through the main ZenML python package.
127+
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/getting-started/deploying-zenml/using-cli.md) and/or [deployed on the cloud](https://docs.zenml.io/getting-started/deploying-zenml/deployment.md) through the main ZenML python package.
129128

130129
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.
131130

@@ -141,7 +140,7 @@ Which creates a local daemon that serves the files in a [FastAPI](https://github
141140

142141
## 🪐 Deploying the dashboard
143142

144-
You can deploy this dashboard on supported cloud providers with ZenML python package by using the command:
143+
You can deploy this dashboard on supported cloud providers with ZenML python package by using the command:
145144

146145
```
147146
zenml deploy
@@ -160,44 +159,44 @@ Just don't forget to the set the `REACT_APP_BASE_API_URL` environment variable!
160159
![img](./assets/screenshot-login.png)
161160

162161
## 🏠 Home Page
162+
163163
![img](./assets/screenshot-home.png)
164164

165165
## 🗂 Pipelines, Stacks and Components
166-
![img](./assets/dashboard.gif)
167166

167+
![img](./assets/dashboard.gif)
168168

169169
# 🙌 Contributing
170170

171171
We would love to develop ZenML together with our community! Best way to get
172172
started is to select any issue from the [`good-first-issue`
173-
label](https://github.com/zenml-io/zenml-dashboard/labels/good%20first%20issue).
173+
label](https://github.com/zenml-io/zenml-dashboard/labels/good%20first%20issue).
174174

175175
If you would like to contribute, please review our [Contributing
176176
Guide](CONTRIBUTING.md) for all relevant details.
177177

178-
179178
# 👩‍👩‍👧‍👦 Meet the Team
180179

181180
![Meet the Team](./assets/community_meetup.png)
182181

183-
Every week, the ZenML [core team](https://zenml.io/company#CompanyTeam) will pop in for 30 minutes to interact directly with the community.
184-
Sometimes we'll be presenting a feature, other times we'll take questions and have fun.
182+
Every week, the ZenML [core team](https://zenml.io/company#CompanyTeam) will pop in for 30 minutes to interact directly with the community.
183+
Sometimes we'll be presenting a feature, other times we'll take questions and have fun.
185184

186185
[Register now](https://zenml.io/meet) for the ZenML Meet the Community session. It's free and open to everyone.
187186

188-
Or subscribe to our [public events calendar](https://calendar.google.com/calendar/u/0/r?cid=Y19iaDJ0Zm44ZzdodXBlbnBzaWplY3UwMmNjZ0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t) to get notified
187+
Or subscribe to our [public events calendar](https://calendar.google.com/calendar/u/0/r?cid=Y19iaDJ0Zm44ZzdodXBlbnBzaWplY3UwMmNjZ0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t) to get notified
189188
before every community gathering.
190189

191190
# 🆘 Getting Help
191+
192192
By far the easiest and fastest way to get a response is to:
193193

194194
1. Ask your questions in [our Slack group](https://zenml.io/slack-invite/).
195195
2. [Open an issue](https://github.com/zenml-io/zenml-dashboard/issues/new/choose) on our GitHub repo.
196196

197-
198197
# 📜 License
199198

200-
ZenML Dashboard is distributed under the terms of the Apache License Version 2.0.
199+
ZenML Dashboard is distributed under the terms of the Apache License Version 2.0.
201200
A complete version of the license is available in the [LICENSE](LICENSE) file in
202-
this repository. Any contribution made to this project will be licensed under
201+
this repository. Any contribution made to this workspace will be licensed under
203202
the Apache License Version 2.0.

global.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ interface TWorkspace {
9090
name: string;
9191
createdAt: Date;
9292
}
93-
interface Projects {
93+
interface Workspaces {
9494
id: TId;
9595
created: Date;
9696
updated: Date;
@@ -102,7 +102,7 @@ interface TPipeline {
102102
name: string;
103103
created: Date;
104104
creationDate: Date;
105-
projectName: string;
105+
workspaceName: string;
106106
components: any;
107107
owner: string;
108108
pipelineConfig: any;
@@ -121,7 +121,7 @@ interface TStack {
121121
name: string;
122122
creationDate: Date;
123123
created: Date;
124-
projectName: string;
124+
workspaceName: string;
125125
components: any;
126126
userName: string;
127127
pipelineConfig: any;
@@ -130,7 +130,7 @@ interface TStack {
130130
type?: string;
131131
flavor?: string;
132132
configuration?: any;
133-
project?: string;
133+
workspace?: string;
134134
user?: any;
135135
isShared?: Boolean;
136136
}

src/api/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ export const httpMethods = {
66
delete: 'DELETE',
77
};
88

9-
export const BASE_API_URL = process.env.REACT_APP_BASE_API_URL;
9+
export const BASE_API_URL = process.env.REACT_APP_BASE_API_URL;
10+
11+
// https://appserver.zenml.io/api/v1
12+
// http://localhost:8080/api/v1

src/api/endpoints.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ export const endpoints = {
2020
deleteInvite: (id: string): string => `/users/${id}`,
2121
},
2222

23-
projects: {
24-
my: '/projects',
25-
stats: (project: string) => `/projects/${project}/statistics`,
23+
workspaces: {
24+
my: '/workspaces',
25+
stats: (workspace: string) => `/workspaces/${workspace}/statistics`,
2626
},
2727

2828
pipelines: {
29-
my: (project: string): string => `/projects/${project}/pipelines`,
29+
my: (workspace: string): string => `/workspaces/${workspace}/pipelines`,
3030
get: (pipelineId: TId): string => `/pipelines/${pipelineId}`,
3131
},
3232
Stacks: {
33-
my: (project: string): string => `/projects/${project}/stacks`,
33+
my: (workspace: string): string => `/workspaces/${workspace}/stacks`,
3434
get: (stackId: TId): string => `/stacks/${stackId}`,
3535
},
3636
StackComponents: {
3737
types: '/component-types',
38-
my: (type: string, project: string): string =>
39-
`/projects/${project}/components?scope_type=${type}`,
38+
my: (type: string, workspace: string): string =>
39+
`/workspaces/${workspace}/components?scope_type=${type}`,
4040
get: (stackComponentId: TId): string => `/components/${stackComponentId}`,
4141
},
4242
runs: {
@@ -53,7 +53,7 @@ export const endpoints = {
5353
graphById: {
5454
get: (runId: TId): string => `/runs/${runId}/graph`,
5555
},
56-
all: (project: string): string => `/projects/${project}/runs`,
56+
all: (workspace: string): string => `/workspaces/${workspace}/runs`,
5757
get: (runId: TId): string => `/runs/${runId}`,
5858
},
5959
roles: {

src/api/pipelines/getMyPipelinesApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { apiUrl } from '../apiUrl';
55

66
const getMyPipelinesApi = ({
77
authenticationToken,
8-
project,
8+
workspace,
99
sort_by,
1010
logical_operator,
1111
page,
@@ -18,11 +18,11 @@ const getMyPipelinesApi = ({
1818
size: number;
1919
name?: string;
2020
authenticationToken: string;
21-
project: string;
21+
workspace: string;
2222
filtersParam?: object;
2323
}): Promise<TPipeline> =>
2424
fetchApiWithAuthRequest({
25-
url: apiUrl(endpoints.pipelines.my(project)),
25+
url: apiUrl(endpoints.pipelines.my(workspace)),
2626
params: { sort_by, logical_operator, page, size, ...filtersParam },
2727
method: httpMethods.get,
2828
authenticationToken,

src/api/runs/getAllRunsApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { httpMethods } from '../constants';
44
import { apiUrl } from '../apiUrl';
55

66
const getAllRunsApi = ({
7-
project,
7+
workspace,
88
sort_by,
99
logical_operator,
1010
page,
@@ -17,11 +17,11 @@ const getAllRunsApi = ({
1717
page: number;
1818
size: number;
1919
authenticationToken: string;
20-
project: string;
20+
workspace: string;
2121
filtersParam?: object;
2222
}): Promise<TOrganization> =>
2323
fetchApiWithAuthRequest({
24-
url: apiUrl(endpoints.runs.all(project)),
24+
url: apiUrl(endpoints.runs.all(workspace)),
2525
params: { sort_by, logical_operator, page, size, ...filtersParam },
2626
method: httpMethods.get,
2727
authenticationToken,

src/api/stackComponents/getStackComponentListApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const getMyStackComponentsApi = ({
1111
size,
1212
type,
1313
filtersParam,
14-
project,
14+
workspace,
1515
}: {
16-
project: string;
16+
workspace: string;
1717
authenticationToken: string;
1818
sort_by: string;
1919
logical_operator: string;
@@ -23,7 +23,7 @@ const getMyStackComponentsApi = ({
2323
size: number;
2424
}): Promise<TStack> =>
2525
fetchApiWithAuthRequest({
26-
url: apiUrl(endpoints.StackComponents.my(type, project)),
26+
url: apiUrl(endpoints.StackComponents.my(type, workspace)),
2727
params: { sort_by, logical_operator, page, size, ...filtersParam },
2828
method: httpMethods.get,
2929
authenticationToken,

src/api/stacks/getMyStacksApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { httpMethods } from '../constants';
44
import { apiUrl } from '../apiUrl';
55

66
const getMyStacksApi = ({
7-
project,
7+
workspace,
88
sort_by,
99
logical_operator,
1010
page,
1111
size,
1212
filtersParam,
1313
authenticationToken,
1414
}: {
15-
project: string;
15+
workspace: string;
1616
sort_by: string;
1717
logical_operator: string;
1818
page: number;
@@ -21,7 +21,7 @@ const getMyStacksApi = ({
2121
authenticationToken: string;
2222
}): Promise<TStack> =>
2323
fetchApiWithAuthRequest({
24-
url: apiUrl(endpoints.Stacks.my(project)),
24+
url: apiUrl(endpoints.Stacks.my(workspace)),
2525
params: { sort_by, logical_operator, page, size, ...filtersParam },
2626
method: httpMethods.get,
2727
authenticationToken,

0 commit comments

Comments
 (0)