-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add Generate Models button to enable autogeneration of classes, associations, and mapping feature for relational databases #2455
Conversation
🦋 Changeset detectedLatest commit: b074bbb The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
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 Report
@@ 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
|
…iations, and mapping feature for relational databases
530fca2
to
77eabdf
Compare
There was a problem hiding this 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.
.changeset/sixty-carpets-cheat.md
Outdated
'@finos/legend-graph': patch | ||
--- | ||
|
||
Add Generate Models button to enable autogeneration of classes, associations, and mapping feature for relational databases |
There was a problem hiding this comment.
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.
packages/legend-application-studio/src/components/editor/side-bar/Explorer.tsx
Outdated
Show resolved
Hide resolved
packages/legend-application-studio/src/components/editor/side-bar/Explorer.tsx
Outdated
Show resolved
Hide resolved
packages/legend-application-studio/src/components/editor/side-bar/Explorer.tsx
Outdated
Show resolved
Hide resolved
packages/legend-application-studio/src/components/editor/side-bar/Explorer.tsx
Outdated
Show resolved
Hide resolved
autogen_demo.mp4 |
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