Skip to content

Commit

Permalink
re-organization (#422)
Browse files Browse the repository at this point in the history
* add placeholder packages

* rename zipkin tracer plugin package

* rename @finos/legend-studio-dev-utils to @finos/legend-dev-utils

* add dummy export to placeholder package to not fail build

* rename @finos/legend-studio-components to @finos/legend-application-components

* rename @finos/legend-studio-shared to @finos/legend-shared

* minor fixes

* bump dependencies

* move SDLC models to @finos/legend-sdlc

* upgrade Yarn@3.0.1

* cleanup bundle and build scripts

* rename Zipkin tracer plugin to @finos/legend-tracer-plugin-zipkin

* rename JSON schema preset to @finos/legend-graph-manager-preset-external-format-json-schema

* move Cypress test to manual-tests package

* rename @finos/legend-metadata to @finos/legend-server-depot

* rename @finos/legend-sdlc to @finos/legend-server-sdlc

* rename @finos/legend-studio-app to @finos/legend-studio-deployment

* rename @finos/legend-query-app to @finos/legend-query-deployment

* minor fixes

* cleanup Docker image checks Github action

* fix @finos/legend-server-sdlc dependencies

* add @finos/legend-studio-app package

* make @finos/legend-studio-deployment use @finos/legend-studio-app

* remove Jest in Studio app and deployment packages

* minor fixes

* supply and use @finos/legend-query-app

* link Legend Query and Legend Studio app version together

* update description and reset new packages version to 0.0.0

* rename metadata server to depot

* minor fixes and cleanups for SDLC server code

* bump dependencies

* move .selectOption out of models

* minor fixes

* move selectOption out of PackageableElement

* reorganize graph manager code

* cleanup graph manager utils and constants

* fix #425

* bump dependencies and allow configuring react-refresh

* fix a bug where committed reviews are not shown when the project has no release

* move store provider out into component

* move metadata models out to @finos/legend-server-depot

* minor fixes

* move metamodels out of @finos/legend-studio (part 1)

* move Stubable

* reorganize @finos/legend-graph

* merge @finos/legend-graph-manager and @finos/legend-graph

* rename JSON schema preset

* update the codebase to use @finos/legend-graph

* bump dependencies
  • Loading branch information
akphi committed Aug 20, 2021
1 parent b83c255 commit 985eef5
Show file tree
Hide file tree
Showing 1,125 changed files with 8,699 additions and 7,705 deletions.
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)

0 comments on commit 985eef5

Please sign in to comment.