Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-organization #422

Merged
merged 49 commits into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a1673f9
add placeholder packages
akphi Aug 18, 2021
a5d9d31
rename zipkin tracer plugin package
akphi Aug 18, 2021
e90614d
rename @finos/legend-studio-dev-utils to @finos/legend-dev-utils
akphi Aug 18, 2021
5993844
add dummy export to placeholder package to not fail build
akphi Aug 18, 2021
ca5f371
rename @finos/legend-studio-components to @finos/legend-application-c…
akphi Aug 18, 2021
62502a7
rename @finos/legend-studio-shared to @finos/legend-shared
akphi Aug 18, 2021
80ada95
minor fixes
akphi Aug 18, 2021
8059c30
bump dependencies
akphi Aug 19, 2021
232db0c
move SDLC models to @finos/legend-sdlc
akphi Aug 19, 2021
2208fee
upgrade Yarn@3.0.1
akphi Aug 19, 2021
03ac010
cleanup bundle and build scripts
akphi Aug 19, 2021
29bc4ca
rename Zipkin tracer plugin to @finos/legend-tracer-plugin-zipkin
akphi Aug 19, 2021
c90e12e
rename JSON schema preset to @finos/legend-graph-manager-preset-exter…
akphi Aug 19, 2021
3b2055e
move Cypress test to manual-tests package
akphi Aug 19, 2021
f5a1113
rename @finos/legend-metadata to @finos/legend-server-depot
akphi Aug 19, 2021
dbba99d
rename @finos/legend-sdlc to @finos/legend-server-sdlc
akphi Aug 19, 2021
9f6b52a
rename @finos/legend-studio-app to @finos/legend-studio-deployment
akphi Aug 19, 2021
7d04e65
rename @finos/legend-query-app to @finos/legend-query-deployment
akphi Aug 19, 2021
2724638
minor fixes
akphi Aug 19, 2021
807f964
cleanup Docker image checks Github action
akphi Aug 19, 2021
93dbec0
fix @finos/legend-server-sdlc dependencies
akphi Aug 19, 2021
f334194
add @finos/legend-studio-app package
akphi Aug 19, 2021
9725f5b
make @finos/legend-studio-deployment use @finos/legend-studio-app
akphi Aug 19, 2021
4dcb21e
remove Jest in Studio app and deployment packages
akphi Aug 19, 2021
49559dd
minor fixes
akphi Aug 19, 2021
34e5ca8
supply and use @finos/legend-query-app
akphi Aug 19, 2021
9b3fa93
link Legend Query and Legend Studio app version together
akphi Aug 19, 2021
c1c1af8
update description and reset new packages version to 0.0.0
akphi Aug 19, 2021
13d4217
rename metadata server to depot
akphi Aug 19, 2021
95e5d1c
minor fixes and cleanups for SDLC server code
akphi Aug 19, 2021
9187b5c
bump dependencies
akphi Aug 19, 2021
7eddce4
move .selectOption out of models
akphi Aug 19, 2021
b32810c
minor fixes
akphi Aug 19, 2021
5d10ff5
move selectOption out of PackageableElement
akphi Aug 19, 2021
be7b236
reorganize graph manager code
akphi Aug 19, 2021
bc5fa8e
cleanup graph manager utils and constants
akphi Aug 19, 2021
720bc34
fix #425
akphi Aug 19, 2021
0bffa97
bump dependencies and allow configuring react-refresh
akphi Aug 20, 2021
102ec0a
fix a bug where committed reviews are not shown when the project has …
akphi Aug 20, 2021
d4e2017
move store provider out into component
akphi Aug 20, 2021
4527497
move metadata models out to @finos/legend-server-depot
akphi Aug 20, 2021
3782e37
minor fixes
akphi Aug 20, 2021
6d0c518
move metamodels out of @finos/legend-studio (part 1)
akphi Aug 20, 2021
3982502
move Stubable
akphi Aug 20, 2021
fb850d4
reorganize @finos/legend-graph
akphi Aug 20, 2021
e1799f1
merge @finos/legend-graph-manager and @finos/legend-graph
akphi Aug 20, 2021
3773820
rename JSON schema preset
akphi Aug 20, 2021
927dcf2
update the codebase to use @finos/legend-graph
akphi Aug 20, 2021
f86124f
bump dependencies
akphi Aug 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .changeset/big-drinks-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@finos/babel-preset-legend-studio': patch
'@finos/eslint-plugin-legend-studio': patch
'@finos/legend-application-components': patch
'@finos/legend-dev-utils': patch
'@finos/legend-graph': patch
'@finos/legend-graph-preset-external-format-json-schema': patch
'@finos/legend-model-storage': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-server-depot': patch
'@finos/legend-server-sdlc': patch
'@finos/legend-shared': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-studio-manual-tests': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-tracer-plugin-zipkin': patch
---
2 changes: 1 addition & 1 deletion .changeset/big-kangaroos-try.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
---

Improve error message in URL builder for case where base URL is not specified and a non-absolute URL is provided.
11 changes: 9 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"changelog": [
"@finos/legend-studio-dev-utils/ChangesetChangelogUtils",
"@finos/legend-dev-utils/ChangesetChangelogUtils",
{ "repo": "finos/legend-studio" }
],
"commit": false,
"linked": [],
"linked": [
[
"@finos/legend-studio-app",
"@finos/legend-studio-deployment",
"@finos/legend-query-app",
"@finos/legend-query-deployment"
]
],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/cool-crabs-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-application-components': patch
---

Rename package from `@finos/legend-studio-components` to `@finos/legend-application-components`.
10 changes: 5 additions & 5 deletions .changeset/dirty-jeans-suffer.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
'@finos/eslint-plugin-legend-studio': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-components': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-application-components': patch
'@finos/legend-studio-manual-tests': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-plugin-tracer-zipkin': patch
'@finos/legend-tracer-plugin-zipkin': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
---
2 changes: 1 addition & 1 deletion .changeset/five-files-talk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
---

Make `Logger` requires `LogEvent` instead of log event name as the first argument. This will make logger implementation more extensible as we can support features like `channel`, `timestamp`, etc.
2 changes: 1 addition & 1 deletion .changeset/giant-toes-sin.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@finos/legend-studio-dev-utils': patch
'@finos/legend-dev-utils': patch
---

Update Webpack resolution config to include workspace starting with `legend-` and `@finos/legend-` instead of `legend-studio` as we start having more non-Studio support in the codebase.
5 changes: 5 additions & 0 deletions .changeset/hot-pears-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-tracer-plugin-zipkin': patch
---

Rename package from `@finos/legend-studio-plugin-tracer-zipkin` to `@finos/legend-tracer-plugin-zipkin`.
20 changes: 20 additions & 0 deletions .changeset/hungry-melons-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@finos/legend-application-components': patch
'@finos/legend-dev-utils': patch
'@finos/legend-graph': patch
'@finos/legend-graph-preset-external-format-json-schema': patch
'@finos/legend-model-storage': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-server-depot': patch
'@finos/legend-server-sdlc': patch
'@finos/legend-shared': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-studio-manual-tests': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-tracer-plugin-zipkin': patch
---
22 changes: 22 additions & 0 deletions .changeset/kind-boats-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@finos/babel-preset-legend-studio': patch
'@finos/eslint-plugin-legend-studio': patch
'@finos/legend-application-components': patch
'@finos/legend-dev-utils': patch
'@finos/legend-graph': patch
'@finos/legend-graph-preset-external-format-json-schema': patch
'@finos/legend-model-storage': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-server-depot': patch
'@finos/legend-server-sdlc': patch
'@finos/legend-shared': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-studio-manual-tests': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-tracer-plugin-zipkin': patch
---
5 changes: 5 additions & 0 deletions .changeset/late-guns-snooze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-dev-utils': patch
---

Rename package from `@finos/legend-studio-dev-utils` to `@finos/legend-dev-utils`.
5 changes: 5 additions & 0 deletions .changeset/light-fishes-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-shared': patch
---

`Randomizer` now exports a class instead of a collection of functions.
5 changes: 5 additions & 0 deletions .changeset/moody-cycles-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-shared': patch
---

Rename package from `@finos/legend-studio-shared` to `@finos/legend-shared`.
2 changes: 1 addition & 1 deletion .changeset/rare-paws-unite.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
'@finos/legend-model-storage': patch
'@finos/legend-studio-dev-utils': patch
'@finos/legend-dev-utils': patch
---
14 changes: 7 additions & 7 deletions .changeset/rich-pans-dream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
'@finos/babel-preset-legend-studio': patch
'@finos/eslint-plugin-legend-studio': patch
'@finos/legend-model-storage': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-components': patch
'@finos/legend-studio-dev-utils': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-application-components': patch
'@finos/legend-dev-utils': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-plugin-tracer-zipkin': patch
'@finos/legend-tracer-plugin-zipkin': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-external-format-json-schema': patch
'@finos/legend-graph-preset-external-format-json-schema': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
'@finos/stylelint-config-legend-studio': patch
---
5 changes: 5 additions & 0 deletions .changeset/selfish-glasses-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-studio': patch
---

Show committed reviews when the project has no release (https://github.com/finos/legend-studio/issues/426).
5 changes: 5 additions & 0 deletions .changeset/serious-foxes-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-studio': patch
---

Move store provider and React hooks (e.g. `EditorStoreProvider`, `useEditorStore`, etc.) out of `/stores` and into `/components`.
7 changes: 7 additions & 0 deletions .changeset/shiny-buses-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@finos/legend-graph': patch
'@finos/legend-server-depot': patch
'@finos/legend-model-storage': patch
'@finos/legend-server-sdlc': patch
'@finos/legend-dev-utils': patch
---
5 changes: 5 additions & 0 deletions .changeset/shiny-camels-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-studio': patch
---

Fix a bug with mock data generator sometimes not generating a value for `boolean` fields (https://github.com/finos/legend-studio/issues/425).
10 changes: 5 additions & 5 deletions .changeset/shy-pianos-exercise.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
'@finos/eslint-plugin-legend-studio': patch
'@finos/legend-query-app': patch
'@finos/legend-query-deployment': patch
'@finos/legend-studio': patch
'@finos/legend-studio-app': patch
'@finos/legend-studio-components': patch
'@finos/legend-studio-deployment': patch
'@finos/legend-application-components': patch
'@finos/legend-studio-manual-tests': patch
'@finos/legend-studio-plugin-management': patch
'@finos/legend-studio-plugin-tracer-zipkin': patch
'@finos/legend-tracer-plugin-zipkin': patch
'@finos/legend-studio-preset-dsl-text': patch
'@finos/legend-studio-preset-query-builder': patch
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
---
5 changes: 5 additions & 0 deletions .changeset/tiny-cars-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-graph-preset-external-format-json-schema': patch
---

Rename package from `@finos/legend-studio-preset-external-format-json-schema` to `@finos/legend-graph-preset-external-format-json-schema`.
4 changes: 2 additions & 2 deletions .changeset/wild-cooks-rest.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
'@finos/legend-studio-shared': patch
'@finos/legend-shared': patch
---

Document the auto re-authentication feature using `<iframe>` in `AbstractServerClient`. Due to its situational usage, we realise that we should also rename the config for it.

Merge `@finos/legend-studio-network` into `@finos/legend-studio-shared`.
Merge `@finos/legend-studio-network` into `@finos/legend-shared`.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
.pnp.*

# Exceptions
/packages/legend-studio-dev-utils/__tests__/fixtures/src/dummy.ts
/packages/legend-dev-utils/__tests__/fixtures/src/dummy.ts
49 changes: 11 additions & 38 deletions .github/workflows/check-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ on:
- '**'

jobs:
check-docker-image-studio:
name: Run Image Checks (@finos/legend-studio-app)
check-docker-image:
name: Run Docker Image Checks
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: local/legend-studio
package: '@finos/legend-studio-deployment'
- image: local/legend-query
package: '@finos/legend-query-deployment'
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
Expand All @@ -35,47 +42,13 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build image
run: yarn workspace @finos/legend-studio-app build-dry:docker ${{ github.sha }}
run: yarn workspace ${{ matrix.package }} build-dry:docker ${{ github.sha }}
- name: Scan image for security issues
uses: Azure/container-scan@v0
env:
# Skip `won't fix` CVEs
# See https://github.com/Azure/container-scan/issues/61
TRIVY_IGNORE_UNFIXED: true
with:
image-name: local/legend-studio:${{ github.sha }}
severity-threshold: CRITICAL
check-docker-image-query:
name: Run Image Checks (@finos/legend-query-app)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Setup Yarn cache
uses: actions/cache@v2.1.6
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Node
uses: actions/setup-node@v2.4.0
with:
node-version: 14.x
- name: Install dependencies
run: yarn
- name: Build image
run: yarn workspace @finos/legend-query-app build-dry:docker ${{ github.sha }}
- name: Scan image for security issues
uses: Azure/container-scan@v0
env:
# Skip `won't fix` CVEs
# See https://github.com/Azure/container-scan/issues/61
TRIVY_IGNORE_UNFIXED: true
with:
image-name: local/legend-query:${{ github.sha }}
image-name: ${{ matrix.image }}:${{ github.sha }}
severity-threshold: CRITICAL
2 changes: 1 addition & 1 deletion .github/workflows/manual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
java -cp legend-engine-server/target/*-shaded.jar org.finos.legend.engine.server.Server server ../packages/legend-studio-manual-tests/engine-config.json &
- name: Test
# TODO: we should consider building only relevant workspaces to reduce build time
run: yarn && yarn build:setup && yarn workspace @finos/legend-studio-manual-tests test:manual
run: yarn && yarn build && yarn workspace @finos/legend-studio-manual-tests test:manual
5 changes: 3 additions & 2 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
application: ['@finos/legend-studio-app', '@finos/legend-query-app']
application:
['@finos/legend-studio-deployment', '@finos/legend-query-deployment']
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
Expand All @@ -137,7 +138,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build application
run: yarn build:setup && yarn workspace ${{ matrix.application }} build
run: yarn build && yarn workspace ${{ matrix.application }} bundle
env:
# TODO: After https://github.com/finos/legend-studio/pull/227 it seems like due to either
# the upgrade of Webpack/Typescript that we start seeing some OOM when building Webpack
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ jobs:
username: finos
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish to Docker
# NOTE: we enforce this condition because publishing `@finos/legend-studio-app` should only
# NOTE: we enforce this condition because publishing `@finos/legend-studio-deployment` should only
# be attempted if other packages are published, to ensure it uses the latest tagged versions
# for all of its dependencies instead of their snapshots.
#
# This change has some limtation in that, if somehow Docker publish step failed, there is
# no quick way to rerun this step, but to do a bump in a dependent modules (e.g.
# `@finos/legend-studio` in order to trigger a version bump in `@finos/legend-studio-app`
# `@finos/legend-studio` in order to trigger a version bump in `@finos/legend-studio-deployment`
if: steps.changesets.outputs.published == 'true'
run: >
yarn workspace @finos/legend-studio-app publish:docker &&
yarn workspace @finos/legend-query-app publish:docker
yarn workspace @finos/legend-studio-deployment publish:docker &&
yarn workspace @finos/legend-query-deployment publish:docker
env:
# TODO: After https://github.com/finos/legend-studio/pull/227 it seems like due to either
# the upgrade of Webpack/Typescript that we start seeing some OOM when building Webpack
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
.pnp.*

# Exceptions
/packages/legend-studio-dev-utils/__tests__/fixtures/testTsConfigWithTrailingCommas.json
/packages/legend-dev-utils/__tests__/fixtures/testTsConfigWithTrailingCommas.json
50 changes: 48 additions & 2 deletions .yarn/plugins/@yarnpkg/plugin-constraints.cjs

Large diffs are not rendered by default.

358 changes: 323 additions & 35 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

591 changes: 0 additions & 591 deletions .yarn/releases/yarn-3.0.0-rc.2.cjs

This file was deleted.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'

yarnPath: .yarn/releases/yarn-3.0.0-rc.2.cjs
yarnPath: .yarn/releases/yarn-3.0.1.cjs
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

This is the changelog for Legend applications: Legend Studio, Legend Query, etc. For respective libraries changelogs, please navigate to their location, e.g. [@finos/legend-shared](https://github.com/finos/legend-studio/tree/master/packages/legend-shared).

# 0.0.1 (WIP)