Git Product home page Git Product logo

Comments (5)

janmonschke avatar janmonschke commented on June 15, 2024

Hey,

Normally remote deletion of models should work out of the box. When a model with the same _id is being deleted, the deletion should propagate via the _changes feed and then the connector would delete the model and fire the remove event.
Since I just recently rewrote the connector and dumbly did not add tests for remote changes, it could be that it does not work at the moment. I will have a look at it tomorrow. But it worked in the last version of the ocnnector ;)

/Jan

from backbone-couchdb.

gr2m avatar gr2m commented on June 15, 2024

Thanks for your quick reply, Jan! I'd love to help out, writing the test and fixing it if necessary, but at the moment, I do not really know where to start ... I'll try it at least, but I'd very appreciate if you could have a look at it, thanks!

from backbone-couchdb.

gr2m avatar gr2m commented on June 15, 2024

fyi, there also seems to be a failing test with read collection with custom view

from backbone-couchdb.

janmonschke avatar janmonschke commented on June 15, 2024

Just altered the example chat example so that you can delete your own posts and they will propagate through the _changes feed. Just forgot to add another option in chat_example/filters/messages.js. Should work fine now.
All tests pass on my machine but the tests fail on the online version. Maybe it's a CouchDB version problem.
Still using CouchDB 1.0.2 on my machine.

from backbone-couchdb.

janmonschke avatar janmonschke commented on June 15, 2024

Added the comments example from the previous versions. It shows much simpler how remote updates work.

from backbone-couchdb.

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.