Code Monkey home page Code Monkey logo

Comments (12)

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024 1

@Maxpain177 good find. yes it will be fixed.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024 1

Fixed.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024

@Maxpain177 a lot of changes are currently required to do such a thing. Basically the current observe() is not a full implementation of the observe() which has support for addedBefore, etc.

Do you really need this functionality ? This is my question. Because if there is no way to work-around this in some scenarios we will implement it.

from redis-oplog.

maxpain avatar maxpain commented on May 21, 2024

@theodorDiaconu Yes, In my project (which contains several microservices, connected to one mongodb and redis) it is using everywhere.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024

@Maxpain177 I understand. Redis-oplog is now ready to go under some restructuring and refactoring, and this will be included :)

from redis-oplog.

maxpain avatar maxpain commented on May 21, 2024

@theodorDiaconu, Currently, i can't use this package, because i need remake most part of application architecture for working without oldDoc.
Thanks 👍

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024

@Maxpain177 check it now :)

from redis-oplog.

maxpain avatar maxpain commented on May 21, 2024

@theodorDiaconu Yes, it works. But, if nothing changed in doc, changed function still fires.

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024

@Maxpain177 can you give me an example ? What kind of update you do ?

from redis-oplog.

maxpain avatar maxpain commented on May 21, 2024

@theodorDiaconu
Just updating document.

Counts.update({ _id: "users" }, { $set: { count: 0 } })

from redis-oplog.

theodorDiaconu avatar theodorDiaconu commented on May 21, 2024

@maxnowack so if "count" was previously ZERO, it should not fire the change event.

from redis-oplog.

maxpain avatar maxpain commented on May 21, 2024

@theodorDiaconu, Reproduction

from redis-oplog.

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.