docbrown/app/controllers/api/v0
rhymes 5e9867ec56 Simplify AnalyticsService code (#2308)
* Add basic tests for Analytics service

* User/Organization are always required

* Add some data to the test

* Use queries and date times

* Fix AnalyticsService interface in the controller

* s/HTTP_API_KEY/api-key

* Defend against nils and support datetime objects

* Update app/services/analytics_service.rb

Co-Authored-By: rhymes <rhymesete@gmail.com>

* Use SQL sum, not Rails sum

* Group average_read_time

* Use SQL, not Rails

* Use ISO date

* Fix specs
2019-04-04 16:07:57 -04:00
..
analytics_controller.rb Simplify AnalyticsService code (#2308) 2019-04-04 16:07:57 -04:00
api_controller.rb Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
articles_controller.rb Add published in the SQL query to retrieve article (#2248) 2019-04-01 06:24:17 -04:00
comments_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
follows_controller.rb Reduce queries in bulk follow (#1568) 2019-01-16 12:21:15 -05:00
github_repos_controller.rb Add profile_updated_at and github_repos_updated_at to avoid extra fet… (#1754) 2019-02-06 20:39:15 -04:00
podcast_episodes_controller.rb Add tests to PodcastEpisodesController (#2297) 2019-04-03 09:57:48 -04:00
reactions_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
tags_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
users_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00