edelooff / sqlalchemy-json

Full-featured JSON type with mutation tracking for SQLAlchemy
http://variable-scope.com/posts/mutation-tracking-in-nested-json-structures-using-sqlalchemy
BSD 2-Clause "Simplified" License
189 stars 34 forks source link

Release 0.6.0 #45

Closed edelooff closed 1 year ago

edelooff commented 1 year ago

subj

torotil commented 1 year ago

Hi! For me it would be very good to have a new release soon. The upcoming version fixes #46 which means models are modified when copying them.

The following test fails in 0.5.0 but passes with 0.6.0:

def test_deepcopy(session, article):
    article_copy = Article(
        author=article.author,
        content=article.content,
        references=copy.deepcopy(article.references),
    )
    article_copy.references["github.com"]["someone/somerepo"] = 10
    article_copy.references["modified"] = True
    assert "someone/somerepo" not in article.references["github.com"]
    assert not session.dirty