-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor database initialization #1805
Comments
mabw-rte
added a commit
that referenced
this issue
Nov 13, 2023
mabw-rte
pushed a commit
that referenced
this issue
Nov 19, 2023
mabw-rte
pushed a commit
that referenced
this issue
Nov 19, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 22, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 23, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 23, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 23, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 23, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 23, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 24, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 26, 2023
mabw-rte
added a commit
that referenced
this issue
Nov 26, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Nov 29, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 5, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 7, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Dec 11, 2023
laurent-laporte-pro
pushed a commit
that referenced
this issue
Apr 19, 2024
laurent-laporte-pro
pushed a commit
that referenced
this issue
May 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The solution is based on a refactoring of the init_db function and repositories. The aim is to modify this function so that the DBSessionMiddleware is no longer declared, as this middleware will be declared at the same time as the other middlewares.
Data initialization must be carried out in separate functions that will be called after database initialization. In this way, repository instantiation will no longer generate SQL queries.
On the other hand, some repositories will have to be modified so that a specific SqlAlchemy session is used instead of the global db variable. The db variable will be used if no session is supplied as an initialization parameter.
This feature is required to implement #1724
The text was updated successfully, but these errors were encountered: