-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove fastapi-users-db-sqlmodel dependency #488
Comments
For the record, let's keep in mind that https://github.com/fastapi-users/fastapi-users-db-sqlalchemy appears as well maintained. |
The three classes that we are using from this package are If we proceed with a switch from UUID4 to autoincremental integer IDs (ref #560), then As per
I think that we should quickly move on and explore the possibility of fully removing this dependency. If it impossible to replace |
Hello, would you consider supporting |
Hi there, |
We being the Fractal developers, not the |
I considered the same @tcompa, thanks |
This is now ready as part of #660. The choices we made are:
Side note: if we ever move away from SQLModel, towards sqlalchemy v2, then we could revert the current change and easily switch to the (better maintained) corresponding adapter: https://github.com/fastapi-users/fastapi-users-db-sqlalchemy |
Closed with #660 |
Context: this question came up while working (with @mfranzon) on a pydantic/sqlmodel/sqlalchemy issue which is not yet clear. We don't know if the two issues are related, but in general this one here has to be considered at some point.
--
We depend on fastapi-users-db-sqlmodel, that currently (as of their 0.2.0 version) forces sqlalchemy version to be <=1.4.35. The reason is that 1.4.36 introduced a widespread issue, including in sqlmodel - see release notes and several issues:
sqlmodel 0.0.7 partly fixed the issue on their side (but notice another PR is still open), and as of sqlmodel 0.0.8 (released in August 2022) their sqlalchemy constraint is
">=1.4.17,<=1.4.41"
.In fastapi-users-db-sqlmodel there are several automatic dependabot PRs to relax the constraint, but little activity.
We should verify if this package actively mantained, and otherwise we should find some way to replace it.
Note that no other dependency of ours currently requires sqlalchemy<=1.4.35:
The text was updated successfully, but these errors were encountered: