-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: db setting error and duplicated keyword submission #113
Conversation
* feat: decoupling routes (iiiyuki#30) * feat: decoupling routes * fix: remove unrelated files * change sh to zsh (iiiyuki#31) * feat: intro mybatis-plus (iiiyuki#32) * feat: mysql support and common fixes (iiiyuki#33) * feat: decoupling routes * fix: remove unrelated files * feat: error handler * feat: add vertx mysql support * feat: replace deprecated method * chore: renew authors * feat: description check of user upload added. (iiiyuki#34) --------- Co-authored-by: binary-austin <[email protected]> Co-authored-by: Jingyu Wang <[email protected]>
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.
LGTM
|
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.
LGTM!
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.
good
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.
LGTM
This pull request includes several changes to the
Zephyr
project, primarily focusing on refactoring the database helper and improving the handling of entity managers. Key changes include the introduction of a singletondbHelperInstance
, refactoring of entity manager handling, and updates to theMainVerticle
class.Refactoring and improvements:
src/main/java/Zephyr/MainVerticle.java
: IntroduceddbHelperInstance
as a singleton and refactored thestart
method to initialize the database and set up the HTTP server. Removed theinitializeServices
method and its associated code. [1] [2]src/main/java/Zephyr/dbHelper.java
: Added methods to get and close the entity manager, and refactored the class to use a singleton pattern forEntityManagerFactory
. [1] [2] [3] [4] [5]Entity manager handling:
src/main/java/Zephyr/JackRoutes.java
: Replaced multiple instances ofdbHelper.getEntityManagerFactory().createEntityManager()
withdbHelperInstance.getEntityManager()
. Improved the handling of entity managers by ensuring they are closed properly. [1] [2] [3] [4] [5] [6] [7] [8]Testing updates:
src/test/java/Zephyr/TestJackRoutes.java
: Corrected the expected HTTP status code in the test assertion for thehandleUpload
method.Minor changes:
src/main/java/Zephyr/entities/AcceptedSequences.java
: Removed an unnecessary blank line.