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

Add Generate Models button to enable autogeneration of classes, associations, and mapping feature for relational databases #2455

Merged
merged 6 commits into from
Jul 31, 2023

Conversation

jake-kim1
Copy link
Contributor

@jake-kim1 jake-kim1 commented Jul 26, 2023

Summary

This PR adds a "Generate Models" button when right-clicking on a relational database, which calls the API for autogeneration of classes, and associations, and mapping. Additionally, when the user does not define any joins in the relational database, a pop-up appears with an option to either proceed or abort.

Note:
This PR depends on finos/legend-engine#2070 which has been merged in Legend Engine

@jake-kim1 jake-kim1 requested a review from a team as a code owner July 26, 2023 13:41
@changeset-bot
Copy link

changeset-bot bot commented Jul 26, 2023

🦋 Changeset detected

Latest commit: b074bbb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@finos/legend-application-studio Minor
@finos/legend-graph Minor
@finos/legend-application-studio-bootstrap Patch
@finos/legend-extension-assortment Patch
@finos/legend-extension-dsl-data-space Patch
@finos/legend-extension-dsl-diagram Patch
@finos/legend-extension-dsl-mastery Patch
@finos/legend-extension-dsl-persistence Patch
@finos/legend-extension-dsl-service Patch
@finos/legend-extension-dsl-text Patch
@finos/legend-extension-store-flat-data Patch
@finos/legend-extension-store-relational Patch
@finos/legend-extension-store-service-store Patch
@finos/legend-application-pure-ide Patch
@finos/legend-application-query-bootstrap Patch
@finos/legend-application-query Patch
@finos/legend-lego Patch
@finos/legend-manual-tests Patch
@finos/legend-query-builder Patch
@finos/legend-application-studio-deployment Patch
@finos/legend-application-pure-ide-deployment Patch
@finos/legend-application-query-deployment Patch
@finos/legend-server-showcase-deployment Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #2455 (4e8fd91) into master (50c1a74) will decrease coverage by 0.10%.
Report is 4 commits behind head on master.
The diff coverage is 20.40%.

❗ Current head 4e8fd91 differs from pull request most recent head b074bbb. Consider uploading reports for the commit b074bbb to get more accurate results

@@            Coverage Diff             @@
##           master    #2455      +/-   ##
==========================================
- Coverage   41.75%   41.66%   -0.10%     
==========================================
  Files        1584     1585       +1     
  Lines       74817    75049     +232     
  Branches    17592    17671      +79     
==========================================
+ Hits        31242    31266      +24     
- Misses      43449    43658     +209     
+ Partials      126      125       -1     
Files Changed Coverage Δ
...raph/src/graph-manager/AbstractPureGraphManager.ts 30.55% <ø> (ø)
...ph-manager/protocol/pure/v1/V1_PureGraphManager.ts 45.46% <0.00%> (-0.29%) ⬇️
...tion-studio/src/stores/editor/ExplorerTreeState.ts 60.40% <6.66%> (-4.43%) ⬇️
...graph-manager/protocol/pure/v1/engine/V1_Engine.ts 18.81% <10.00%> (-0.32%) ⬇️
...r/protocol/pure/v1/engine/V1_EngineServerClient.ts 53.79% <33.33%> (-0.44%) ⬇️
...studio/src/components/editor/side-bar/Explorer.tsx 70.26% <46.15%> (-0.72%) ⬇️
...ne/relational/V1_DatabaseToModelGenerationInput.ts 100.00% <100.00%> (ø)

... and 19 files with indirect coverage changes

…iations, and mapping feature for relational databases
Copy link
Member

@MauricioUyaguari MauricioUyaguari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a video of the workflow here. Not sure I agree with the approach of just generating the models directly without first showing the users the models that will be added to the project. this is the approach we do for generate database and we should follow a similar approach.

'@finos/legend-graph': patch
---

Add Generate Models button to enable autogeneration of classes, associations, and mapping feature for relational databases
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets separate this to two changeste files

The above message can stay for @finos/legend-application-studio but should be a minor change.
For the @finos/legend-graph we can keep empty.

@MauricioUyaguari MauricioUyaguari merged commit 05fa748 into finos:master Jul 31, 2023
10 checks passed
@jake-kim1
Copy link
Contributor Author

autogen_demo.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants