- Allow report options to be hidden
- Allow the collection in a CollectionQuery to be generated at report runtime using a proc
- Fix crash when converting a ResultSet to JSON when the results is a flat array
- Remove haml implicit dependency
- Added the ability to render a query to CSV, and a controller action for downloading the CSV
- Added
exports
report setting - Added
skip_totals_for
option to table settings to define columns to skip in the totals row - Added
i18n_scope
option to table settings - Added
Settings::Query#update
to update query settings with a block - Allow table settings to be specified on the report object
- Add settings to
render_table
to specify the CSS classes to use for each element. - Allow queries to be ordered and reversed via query options (:order and :reverse)
- Add default orders for count and sum queries
- Fix redefining a query so that it actually overrides the previous query instead of creating a new one with the same name
- Add
SumQuery
query type - Fix option tooltip covering input elements in IE [rvracaric]
- Allow custom param validations to be specified
- Fix filters being overridden by subclassed queries
- Allow direct access to a chart object without having to render it (useful if the provider allows chart settings to be updated after initialization)
- Delegate missing methods from ChartProvider classes to the chart
- Fix crash regressions in Rails 3
- Added
CountQuery
query type which calls count on the result of the given block (for instance a query which is grouped by day and then counted) - Added
ScalarParam
param type for collecting arbitrary data
- Added query filters (allow a result set to be filtered to remove/translate/etc. data)
- Extract chart providers into their own gems
- Queries can now be rendered with a remote data source
- Added
Report#url
andQuery#url
methods to get the JSON URL
- Added the ability to render a report or a specific query of a report as JSON
- Added a built-in renderer for metrics
- Fixed the
:only
and:except
options toReport#run
- Give
ThroughQuery
access to params if the definition block has an arity of 2 - Fixed mutating results in a
ThroughQuery
block affecting the parent query