-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Test without sqlalchemy-citext #2518
base: master
Are you sure you want to change the base?
Conversation
3468d1e
to
6b49729
Compare
Whether this is case sensitive and whether we are testing it I am unsure: flask-admin/flask_admin/contrib/sqla/form.py Line 323 in 5b069be
|
Added a new commit - a wider problem - doesn't look like we have been testing SQLAlchemy 1. With use_frozen_constraints constraints are generated by calling "pip An idea of how to fix it in the added commit. At least this was all I could find. N.B. the formatted output of the GitHub Actions can truncate the list of pip installed packages. |
I'll rebase after #2540. |
76a1cf9
to
527daea
Compare
Rebased. |
527daea
to
7b2dc1d
Compare
c68619a
to
6c9e7c8
Compare
Finished experimenting. |
This looks sensible. Would you mind adding an entry in |
Rebase this one? |
The last sqlalchemy-citext update was in 2021 and it has various compatibility issues. SQLAlchemy now has CITEXT support.
6c9e7c8
to
43148ac
Compare
Rebased and changelog updated. |
@@ -36,7 +36,6 @@ sqlalchemy = [ | |||
sqlalchemy-with-utils = [ | |||
"Flask-Admin[sqlalchemy]", | |||
"sqlalchemy_utils>=0.38.0", | |||
"sqlalchemy-citext>=1.8.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a bit more of a think about this since my last comment - sorry.
We still theoretically support sqlalchemy<2.0.19
- this feels like it would break users on SQLAlchemy v1 and I'm not sure we've made the decision to drop support for that yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks more complicated because sqlalchemy-citext has not been updated for 3 years:
mahmoudimus/sqlalchemy-citext#23
mahmoudimus/sqlalchemy-citext#25
mahmoudimus/sqlalchemy-citext#26
I don't know whether it is possible to get away with it (if using psycopg2), our simple test passes. But ultimately this is recommending something that is broken.
The last sqlalchemy-citext update was in 2021 and it has various compatibility issues.
SQLAlchemy now has CITEXT support.