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

Scaffold: Quality of life improvements for the Scaffold feature #175

Merged
merged 10 commits into from
Jul 27, 2023

Conversation

tcortega
Copy link
Contributor

This PR tackles some issues from #172 by storing tables in the project settings and adding table validations. It also prevents empty row errors in the scaffold command.

Had to use tablesList.value = listOf() in ScaffoldDbContextDataContext to reset the list due to the UI state reloading often. Tried tablesList.removeAll(), but it stopped the tab from opening.

@tcortega
Copy link
Contributor Author

Have been using myself on a project I have, making multiple scaffolds and tested it quite a lot, couldn't find any issues related to the new functionality.

@seclerp seclerp self-requested a review July 19, 2023 11:09
Copy link
Member

@seclerp seclerp left a comment

Choose a reason for hiding this comment

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

Hi @tcortega, thanks for your contribution!

In general, I think it's a great idea to have more validations around Scaffolding functionality. In addition to my review comments from below, let's maybe also introduce the same logic for the "Schemas" tab.

Some of the places that you updated according to new validations are shared between Tables and Schemas tabs, but data persistency is made only for Tables, the same for validation messages.

Does it work for you to implement also a "Schemas" part in the same way?

@tcortega tcortega requested a review from seclerp July 26, 2023 04:44
Copy link
Member

@seclerp seclerp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@tcortega
Copy link
Contributor Author

LGTM, thanks!

My pleasure! Thanks for the plugin :D

@seclerp seclerp merged commit 7db8a90 into JetBrains:release/232 Jul 27, 2023
1 check passed
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.

2 participants