Code Monkey home page Code Monkey logo

Comments (6)

GAV1N avatar GAV1N commented on August 25, 2024

Have you tried adding Vanity.playground.collecting = true to your config/environments/development.rb file? I had this issue too, til I found out that by default Vanity only collects data in production.

from vanity.

mattsmith avatar mattsmith commented on August 25, 2024

I did, this was also tested in a production env. The problem was not actually with collecting data but that the metric was directly querying the Model using Active Record and the way it handled the data for that specific type of query. I have a fix for it, I just need to clean up the branch and submit a pull request. I will try to aim to do that tonight.

from vanity.

ScotterC avatar ScotterC commented on August 25, 2024

I'm having the same problem. How did you go about fixing the query?

from vanity.

mattsmith avatar mattsmith commented on August 25, 2024

Hey, here is the commit that fixes it. I've been meaning to clean it up and write a test before I did a pull request.

mattsmith@3bf0301

You only need to change what is in lib/vanity/metric/active_record.rb. You'll need to fork and point your gem file to your fork e.g.

gem "vanity", git: "git://github.com/mattsmith/vanity.git", branch: "active-record-fix" # Metrics & A/B

Let me know if that works for you.

from vanity.

ScotterC avatar ScotterC commented on August 25, 2024

Thanks!

On Mon, Dec 5, 2011 at 5:27 PM, Matt Smith <
[email protected]

wrote:

Hey, here is the commit that fixes it. I've been meaning to clean it up
and write a test before I did a pull request.

mattsmith@3bf0301

You only need to change what is in lib/vanity/metric/active_record.rb.
You'll need to fork and point your gem file to your fork e.g.

gem "vanity", git: "git://github.com/mattsmith/vanity.git", branch:
"active-record-fix" # Metrics & A/B

Let me know if that works for you.


Reply to this email directly or view it on GitHub:
#80 (comment)

Scott Carleton
Artsicle, Founder / CTO
[email protected] // www.artsicle.com
C. 914 400 5085

www.twitter.com/artsicle
www.scottcarleton.com

from vanity.

dougcole avatar dougcole commented on August 25, 2024

This should be fixed in master now, thank you for reporting it and feel free to reopen if you are still having this issue in master.

from vanity.

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.