Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor DomainObjectModificationExtension to support SQLAlchemy 1.4#6699

Merged
amercader merged 11 commits into
ckan:masterfrom
pdelboca:refactor-domain-object-modification-extension
Feb 18, 2022
Merged

Refactor DomainObjectModificationExtension to support SQLAlchemy 1.4#6699
amercader merged 11 commits into
ckan:masterfrom
pdelboca:refactor-domain-object-modification-extension

Conversation

@pdelboca
Copy link
Copy Markdown
Member

@pdelboca pdelboca commented Feb 10, 2022

This PR is part of #6243

Proposed fixes:

Removes deprecated SqlAlchemy's SessionExtension.

To do that, it is needed a small refactor on the DomainObjectModificationExtension to not implement the ISession interface, but rather call it's before_commit function with SqlAlchemy event_listeners.

The DomainObjectModificationExtension is currently used by:

It is an over engineered solution and should be simplified but it is out of the scope of this work (Migrate SQLAlchemy to 1.4)

Deprecation

This PR will deprecate ISession interface since it's no longer the paradigm to extend SQLAlchemy events.

@pdelboca pdelboca changed the title Refactor DomainObjectModificationExtension Refactor DomainObjectModificationExtension to support SQLAlchemy 1.4 Feb 10, 2022
@amercader amercader self-assigned this Feb 15, 2022
amercader added a commit that referenced this pull request Feb 18, 2022
@amercader amercader merged commit 3b8e81c into ckan:master Feb 18, 2022
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.

2 participants