Vanity v1.2.0 Release Notes

Release Date: 2009-12-14 // over 14 years ago
  • ๐Ÿš€ This release introduces metrics backed by ActiveRecord. Use them when your model is already tracking a metric, and you get instant historical data.

    Example, track sign ups using User model:

    metric "Signups" do model Account end

    Example, track satisfaction using Survey model: metric "Satisfaction" do model Survey, :average=>:rating end

    Example, track only high ratings: metric "High ratings" do model Rating, :conditions=>["stars >= 4"] end

    There's no need to call track! on these metrics.

    • โž• Added: Metrics backed by ActiveRecord.
    • โž• Added: track! and ab_test methods now available from Object (i.e. everywhere).
    • โž• Added: Playground.load!. Now loading all metrics and experiments from Rails initializer.
    • ๐Ÿ”„ Changed: Decoupled metric name from identifier. You can now define a metric with more descriptive name, e.g. "Cheers per second (user satisfaction)" and keep their ID simple. Identifier is matched against the file name (for metrics loaded from experiments/metrics).
    • ๐Ÿ”„ Changed: Metrics no longer defined on-demand, i.e. calling playground.metric either returns existing metric or raises exception.
    • ๐Ÿ”„ Changed: Playground.experiments returns hash instead of array.
    • ๐Ÿ”„ Changed: All dates in report are UTC, since we don't know which locale to use.
    • โœ‚ Removed: Object.experiment is deprecated, please call Vanity.playground.experiment directly.
    • ๐Ÿ›  Fixed: Playground no longer changes logging level on supplied logger.