upgrades the timescale extension to 1.7.4 (the latest Azure currently allows)
adds rake tasks to enable the CA
ensures the CA are setup in the test env
creates a CA on the group_id attribute in the events table
adds a read only AR model to query the materialized CA view
adds a RESTful group count route controller action
adds a simple JSON events serializer that does simple AR scope limits and ordering
adds how to use API docs including the returned JSON schema format
removes unused rails components from loading (align to API style rails service)
updates / removes dev & test gems (maintenance to get the setup working well)
This PR is intended for use by the FACTSet team to build the group query dashboard functionality.
Longer term this PR will be employed by the Zooniverse team to expand the current timescale Stats API to use continuous aggregates for exposing improved API query types.
Some items of additional work could be to:
add per (user|project|workflow) continuous aggregates in the (hour|day|month|year) time buckets
expose the above metrics via RESTful API end points
This PR adds continuous aggregates to sumate a group's daily classification contributions (CA) using the timescale's continuous aggregates https://legacy-docs.timescale.com/v1.7/api#continuous-aggregates and exposes a RESTful API to access these counts.
Specifically this PR
This PR is intended for use by the FACTSet team to build the group query dashboard functionality.
Longer term this PR will be employed by the Zooniverse team to expand the current timescale Stats API to use continuous aggregates for exposing improved API query types.
Some items of additional work could be to: