oso icon indicating copy to clipboard operation
oso copied to clipboard

Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python

Open kkirsche opened this issue 2 years ago • 10 comments

Last night, SQLAlchemy released 2.0 after multiple betas, release candidates, etc.

Migration Guide: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html

Release Tag: https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_0

Changelog: https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0

kkirsche avatar Jan 27 '23 15:01 kkirsche

Is there any sort of timeframe for this work? The latest release of SQLAlchemy 1.4 introduces a bunch of deprecation warnings which cannot be resolved without updating to a newer version of Flask-SQLAlchemy. This problem is only going to get worse as more libraries move forward.

snstanton avatar Feb 02 '23 20:02 snstanton

Great question, @snstanton — I'm not sure. I may take a look at this, depending on the response from the Oso team. Over the last couple of months, I've found things to be pretty quiet here as most of their team seems to have gone to work on Oso Cloud. Just my observation, though; I don't have any inside knowledge.

EDIT: edited for grammer

kkirsche avatar Feb 02 '23 21:02 kkirsche

Is there any update on this? We need it too.

svendjo avatar Apr 28 '23 16:04 svendjo

Any update on this?

visuman avatar Jun 05 '23 17:06 visuman

same here, needing an update

nephi-dev avatar Aug 02 '23 12:08 nephi-dev

We were looking for a better authorization architecture - and came across oso and have been impressed so far But we have upgraded to sqla 2 and will need our auth to be compatible with sqla2

It would be great if the OSO team could comment on whether this is a "Won't fix" or "Planned"

AbdealiLoKo avatar Oct 16 '23 11:10 AbdealiLoKo

+1

jedkass avatar Nov 20 '23 22:11 jedkass

Hey all,

I've been looking into how feasible this would be, and tried a version of this available at at 0.27.2rc0. This passes my tests, but I'm not sure of the full scope of changes. Would appreciate any feedback on those changes.

I also want to remind people that this package is deprecated. But we're hoping sqlalchemy 2.0 support will give people a bit more time to make a plan.

samscott89 avatar Jan 25 '24 17:01 samscott89

Thank you, Sam, for your time and effort on this. I'm out of the office for a little bit on paternity leave but happy to try this out in our projects at work when I get back at the end of February 👍

This is extremely useful though and greatly appreciated. Excited to see the next phase of Oso 🐻

kkirsche avatar Jan 25 '24 20:01 kkirsche

I ended up taking more time than I originally anticipated (which was nice), so I'm just coming back up to speed with what the team has been up to. Once I catch up, I'll evaluate this and share what I find. Thank you for your patience!

kkirsche avatar Mar 21 '24 16:03 kkirsche

We just published the above changes as 0.27.2. Thanks all for your patience.

samscott89 avatar Jun 13 '24 20:06 samscott89

Thanks Sam, initial tests are looking good for me. You guys rock!

kkirsche avatar Jun 13 '24 20:06 kkirsche