Coder Social home page Coder Social logo

Comments (6)

osantana85 avatar osantana85 commented on June 5, 2024

Hello @rgruber1 , thanks for raising the issue. We'll take a look to reproduce it and let you know.

However, even though the unique key is composed of the ChangeUnit id + author, the best practice (and the recommended one) is to have unique ChangeUnit ids.

In a future major version the way to go will be to have unique ids (the author will be optional and won't be part of the key).

As a workaround, can you refactor your ChangeUnits to prevent duplicated ids?

from mongock.

dieppa avatar dieppa commented on June 5, 2024

@rgruber1 can you update us on this, so we can close it and move it to an internal ticket to address it?

from mongock.

rgruber1 avatar rgruber1 commented on June 5, 2024

As a workaround, we simplified the annotation definitions and only specify the mandatory attributes (id + order), so that mongock uses the id and the default author for the uniqueness check across change units (this effectively makes change units unique based on id only as you know).

from mongock.

dieppa avatar dieppa commented on June 5, 2024

Thanks, we'll fix this in the next major release. This workaround should be fine for the time being.

from mongock.

rgruber1 avatar rgruber1 commented on June 5, 2024

Mongock change unit documentation could possibly mention this defect in https://docs.mongock.io/v5/migration/index.html

from mongock.

dieppa avatar dieppa commented on June 5, 2024

you are totally right! Will do!

from mongock.

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.