Giter VIP home page Giter VIP logo

Comments (2)

lbradstreet avatar lbradstreet commented on June 14, 2024

from onyx.

sundbry avatar sundbry commented on June 14, 2024

What do you think about decoupling the internal data version from the library API version?
In other words, if we ever want to break the tenancy log data structure in an incompatible way, we should increment the internal data structure version. However, this should probably be decoupled from the actual project version, since for example, an upgrade to 0.14.0 or even 1.0.0 might be perfectly compatible with the existing data structures even if there are incompatible API changes or new features.

We might be able to accomplish this in the present form, without too much code, by freezing the version in onyx.peer.log-version and only changing that when the internal data structures change moving forward.

As you mentioned about checking for breaking changes, a good point to start may be to identify which of the schema definitions are used in the persisted data structures. We might be able to programmatically detect then when those schema definitions change. Something like

(def peer-log-schemas {....})

(diff peer-log-schemas previous-peer-log-schemas)

Ultimately though, it will still just be a matter of good design discipline and code review to make sure the internal data versions stay compatible.

from onyx.

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.