-
Notifications
You must be signed in to change notification settings - Fork 128
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
SQLAlchemy 1.4 compatibility #255
Comments
@Glandos could you actually provide more details? I looked briefly at ihatemoney's travis logs, and it doesn't seem related to SQLAlchemy-Continuum per se |
I think our Travis configuration is broken… We didn't take the time to update it since policy change. Anyway, here is the
|
In fact, it seems to be caused by kvesteri/sqlalchemy-utils#474 that should be fixed by merging kvesteri/sqlalchemy-utils#482 or kvesteri/sqlalchemy-utils#506 (albeit the last one is a giant PR). So… in my opinion, I should let this issue opened until something is done in SQLAlchemy-Utils and the dependency is bumped in continuum. But otherwise, feel free to close it ;) |
@Glandos unfortunately, I'm not the maintainer, and the repo is a bit stale by now. I would suggest you to fork it if it's blocking you from migration to 1.4 |
The above error seems to have been fixed with the recent update of
Any possibility to update the package to fix the above? Thanks so much |
We also use this great site package and would be happy if the compatibility to sql alchemy v1.4 will be fixed! |
Hey folks, Of course, if anyone makes a fix I'm willing to look at their pull request/merge as well & test it. Thanks! |
@gnubyte Apologies, I'm swamped at the moment to open a PR. However, if helpful, please see the following links: Formal discussion on SQLAclhemy github |
any chance this can be resolved by any maintainer? We are currently hit by this when maintaining the distro packages leading to broken software 😿 |
Same here. Any chance to get this package working with SQKAlchemy 1.4?
|
Bump! Us too! Pinning to SQLAlchemy 1.3.11 for now. |
@gnubyte Do you plan to look into this issue still? Thanks! |
Does this help somehow for getting rid of the compatibility issue? |
I believe I am seeing activity via email and other threads regarding 1.4 compatibility patches. On a professional level, I produced a separate repo to bridge the immediate need I had for this library by creating similar functionality with field-level git-backed repos through a new library called gitmixin. I do however have some time now with my business needs separately met, love open source, and would still be happy to get this patched. If you are a business or a project that relies on this, I am looking to have this patched by September 17th, pending no pushback from consumer base or fellow contributors. Thank you! |
@gnubyte did you have any luck spending time on this? its a major blocker 🐈 |
Seems like it was a major change and other projects have having similar issues. https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#declarative-is-now-integrated-into-the-orm-with-new-features |
@gnubyte I've got some time to look at this now. Can you let me know if you have any shareable work-in-progress, or it's better for me to start from scratch. Cheers! |
@marksteward Do you already have any findings or results? |
Hey guys, i have a fork that works for me so far: Seems class ModelFactory(object):
model_name = None
def __call__(self, manager):
"""
Create model class but only if it doesn't already exist
in declarative model registry.
"""
for mapper in manager.declarative_base.registry.mappers:
clsname = mapper.class_.__name__
if self.model_name == clsname:
return mapper.class_
else:
return self.create_class(manager) I got another error in def enable_active_history(self, version_classes):
"""
Assign all versioned attributes to use active history.
"""
for cls in version_classes:
for prop in sa.inspect(cls).iterate_properties:
impl = getattr(cls, prop.key).impl
if impl is not None:
impl.active_history = True
Disclaimer: I have no idea what I would really like to use this package for a new version of https://github.com/iiasa/ixmp for transaction-based versioning. cheers |
OK, I've had a proper look at the changes and various proposed fixes. I've opened a PR at #260 as a starting point.
If you have any questions, I'm ms7821 in #sqlalchemy on Libera, so feel free to drop in. |
Hey folks, I'm also happy to contribute on adding support to sqlalchemy 1.4, I see an open PR that is a very good start from @marksteward, can we merge it? |
Fantastic news! Can't wait for the fix! |
I've merged in the PR. Is there anyone available to test the main branch before I put it on pypi? |
OK, I've now released 1.3.12. Please let me know if you see any problems. |
Hi,
I'm one of the maintainer of https://github.com/spiral-project/ihatemoney/ and we use this great project as a dependency.
We recently discovered that SQLAlchemy 1.4 was released, and it broke our test case. Before providing more details on it, have you ever experienced it?
The text was updated successfully, but these errors were encountered: