GithubHelp home page GithubHelp logo

Comments (7)

grakic avatar grakic commented on August 15, 2024 1

I hacked a naive plugin that adds related by foreign key objects into the current versioning transaction. The code is not tested and probably contain bugs. It also probably contains assumptions that are only true in my models. There are no unit tests.

https://gist.github.com/grakic/66006440ed871c8b9d73a2206dff8a5e

From some simple playing in the shell, it looks like it is working. I will keep working on this as time permits.

from sqlalchemy-continuum.

dtheodor avatar dtheodor commented on August 15, 2024

I would really like some feedback on this one by @kvesteri . Is the issue clear or should I describe it more in detail?

from sqlalchemy-continuum.

kvesteri avatar kvesteri commented on August 15, 2024

This kind of functionality can be emulated with TransactionMeta. I'm going to update the docs for how to use it.

from sqlalchemy-continuum.

kvesteri avatar kvesteri commented on August 15, 2024

The next version of Continuum has a plugin architecture where you could create a plugin for local versions. Also the new Activity plugin offers means for handling local histories.

from sqlalchemy-continuum.

alexandreyc avatar alexandreyc commented on August 15, 2024

Hello all, any news on incrementing object version when its relations change ? If no, is there any workaround documented ?

from sqlalchemy-continuum.

billw2012 avatar billw2012 commented on August 15, 2024

It would be nice if this limitation was at least explicitly mentioned in the documentation related to relationships, the last place I expected to have to look to find a (sort of) solution to what appears to be a bug is in the plugin section! Given that both versions and relationships are expressed in the object model itself, the changes to the relationships should certainly affect the version. It makes sense to expect that given the intent of abstracting the underlying tables to an object model. And it appears to be a bug as the version of the relationships themselves is being incremented (as visible in the database tables) but there is no obvious way to see the versions of a relationship, because you are expected to access them via the object property of the parent (and/or child).

from sqlalchemy-continuum.

davidchenfn avatar davidchenfn commented on August 15, 2024

@grakic plugin works great with some changes to fit our code

I hacked a naive plugin that adds related by foreign key objects into the current versioning transaction. The code is not tested and probably contain bugs. It also probably contains assumptions that are only true in my models. There are no unit tests.

https://gist.github.com/grakic/66006440ed871c8b9d73a2206dff8a5e

From some simple playing in the shell, it looks like it is working. I will keep working on this as time permits.

from sqlalchemy-continuum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.