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.