-
Notifications
You must be signed in to change notification settings - Fork 180
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
Flask-SQLAlchemy-3.0.0 breaks sqlalchemy-oso #1631
Comments
Hi @snstanton, thanks for opening the issue. I'm not sure we're going to have time to enable support for Flask-SQLAlchemy 3 soon, but we definitely want to prevent sqlalchemy-oso users from accidentally using an incompatible version of Flask-SQLAlchemy. I'll look into that (need to shift back to my Python shoes from the Rust and TypeScript ones I've been wearing recently 😄), but we'd also definitely accept a PR if you're feeling up to a contribution! |
I believe this may be related in part to #1667 as 3.0.0 was rewritten to the new query styles used in SQLAlchemy 2. I could be wrong here, but that'd be my expectation based on what's changed in each of the various libraries. There certainly are more changes, but based on what I've seen in the sqlalchemy-oso library it's not integrating on most of the Flask-specific integrations. Reference: https://github.com/pallets-eco/flask-sqlalchemy/releases/tag/3.0.0 https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/changes/#version-3-0-0 |
Flask-SQLAlchemy 3.1.1 now requires SQLAlchemy >=2.0.16
|
Hey @zspotter, I'd be happy to take a look at a PR |
Ooh great to know @gj! I'll try to find some time this or next week |
🤦 sorry for the noise, @gj. Turns out I was mistaken about my app's use of sqlalchemy-oso, and I never had a fully working patch! (deleted my above misleading comment) |
No worries! Appreciate the follow-up ❤️ |
Installing Flask-SQLAlchemy-3.0.0 breaks sqlalchemy-oso queries. The policy does not appear to be applied at all.
The text was updated successfully, but these errors were encountered: