Skip to content

Conversation

miketheman
Copy link
Member

Signed-off-by: Mike Fiedler miketheman@gmail.com

@miketheman miketheman requested a review from a team as a code owner June 12, 2023 17:47
@miketheman miketheman force-pushed the miketheman/upgrade-sqlalchemy branch 3 times, most recently from b386557 to 12ff294 Compare June 14, 2023 20:51
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
We no longer need the unmaintained extension, as SQLAlchemy 2.0 provides
the CITEXT extension.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Add comment about order. If reversed, then we get 300+ errors about
interface signature mismatches wanting to have `self` which they
shouldn't.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
SQLAchemy 2.0 wants us to use the `DeclarativeBase` approach to take
advantage of PEP-484 type hints and mappings.

The way we implemented `Event/HasEvents` makes this upgrade path
challenging - the code works, but the type hints don't match up yet.

Disable all the violations surfaced from our lint step, as a deferral to
come back and convert more of the models over to 2.0 declarative style.

Refs: https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/upgrade-sqlalchemy branch from 12ff294 to aac9dba Compare June 14, 2023 21:22
@di di self-requested a review June 14, 2023 21:49
Since we already have the `request` available in scope, use it instead
of finding a new session object.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/upgrade-sqlalchemy branch from be83d17 to 7cc9867 Compare June 14, 2023 21:51
@miketheman miketheman merged commit 2b15879 into pypi:main Jun 15, 2023
@miketheman miketheman deleted the miketheman/upgrade-sqlalchemy branch June 15, 2023 13:57
ewdurbin added a commit that referenced this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants