Vanity v1.4.0 Release Notes
Release Date: 2010-08-06 // over 13 years ago-
โฌ๏ธ Note: Run this command to upgrade your database to 1.4, or you will not have access to collected metrics and experiment data:
vanity upgrade
Connection adapters! We have a new way for managing connections which extends ๐ง to multiple adapters (not just Redis). The easiest is to use the configuration file config/vanity.yml. For example:
development: adapter: redis production: adapter: mongodb
๐คก We get to keep Redis, add new MongoDB adapter, but lose Mock. It's still there, but there's a new way to use Vanity outside production: you can turn data collection on/off.
๐ Under Rails, data collection is turned off in all environments except production. To turn if on/off:
Vanity.playground.collecting = true/false.
๐ This release switches to latest Redis gem and uses redis-namespace (what took me so long?) If your own code relies on the Redis gem, watch out: there are some subtle incompatibilities between 1.x and 2.x.
๐ง Now using RVM, gemsets and Bundler to test Vanity in different configurations. โ To run the full set of tests in all the supported versions of Ruby: rake test:rubies โ To test specific version of Ruby: rake test:rubies[1.8.7] To switch around: rvm 1.9.2@vanity
- โ Added: Adapter API, see Vanity::Adapters::AbstractAdapter and Vanity::Adapters::RedisAdapter.
- โ Added: MongoDB support.
- โ Added: Upgrade command.
- โก๏ธ Added: Metric.last_update_at.
- โ Added: Vanity.playground.collecting. You want this to be true only in production environment. When false, disables collecting of metric and experiment data.
- โ Added: Remote metrics. Push data to remote service.
- โ Added: Partial support for multi-series metrics. Laying the ground for the future.
- ๐ Change: Vanity.playground.redis and redis= methods are deprecated, use connection and establish_connection instead.
- โ Removed: Metric.created_at, derived from experiment and never used.