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

Button to reset the database state from the Quarkus Dev UI for Hibernate ORM #19303

Closed
yrodiere opened this issue Aug 9, 2021 · 2 comments · Fixed by #19312
Closed

Button to reset the database state from the Quarkus Dev UI for Hibernate ORM #19303

yrodiere opened this issue Aug 9, 2021 · 2 comments · Fixed by #19312
Labels
area/dev-ui area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE kind/enhancement New feature or request
Milestone

Comments

@yrodiere
Copy link
Member

yrodiere commented Aug 9, 2021

Description

See #16764 (review)

a button to reset the DB state (actually runs the drop script, followed by the create and optionally the import.sql if there's any)

CC @Sanne @TomasHofman

Implementation ideas

I think we would definitely need a pop-up with a warning, even if it's just development mode. Some people work with pre-initialized databases which take a long time to initialize, and they would be very annoyed if they dropped it by mistake.

@yrodiere yrodiere added kind/enhancement New feature or request area/hibernate-orm Hibernate ORM area/dev-ui labels Aug 9, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 9, 2021

/cc @Sanne, @gsmet

@quarkus-bot quarkus-bot bot added the area/persistence OBSOLETE, DO NOT USE label Aug 9, 2021
@stuartwdouglas
Copy link
Member

This exists here: #15827

The reason why I did not go further with it was because I was not sure about how to add test support for native (for the test part).

I might look at stripping out the test part for now.

stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 10, 2021
- In tests this is done via @CleanDatabase
- In dev mode this is done from the dev console

Fixes quarkusio#583
Fixes quarkusio#19303
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 10, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 10, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 16, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 16, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 16, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 16, 2021
gsmet pushed a commit to stuartwdouglas/quarkus that referenced this issue Aug 17, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 18, 2021
@quarkus-bot quarkus-bot bot added this to the 2.2 - main milestone Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants