GithubHelp home page GithubHelp logo

Comments (4)

 avatar commented on July 18, 2024

In general I really like this idea, but actually I do not manage my views with CouchPotato but with Couchapp. I created a subclass of your CustomViewSpec class to interact nicely with CouchPotato. You can see the source code here: http://gist.github.com/308119

But not using CouchPotato to manage my views means, I always loose my views when accessing them. Which is not a good thing. I tried to solve the problem while introducing an additional flag to indicate either I want auto updates of my views or not. The default behavior doesn't change anything at all, but allows it to deactivate that feature on demand. You can have a look on what I did here: http://github.com/railsbros/couch_potato/commit/564cff6a27b05f40e6888378ac4ebff42cf20155

from couch_potato.

langalex avatar langalex commented on July 18, 2024

ok that makes sense. concerning your patch: can you please not change the version/gemspec - that makes it harder for me to pull your stuff. also i think while we're at this the auto_update shouldn't just return true but should be configurable, so that i can write in my persisted class: view :my_view, auto_update: true/false

from couch_potato.

 avatar commented on July 18, 2024

Sorry for changing the version/gemspec. Will not happen again. Making the auto_update configurable sounds very good. I will work on that, if it is ok with you.

from couch_potato.

langalex avatar langalex commented on July 18, 2024

that's what i was hoping for :)

from couch_potato.

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.