docbrown/app
rhymes a8b7f6eea4 Analytics: refactoring for speed improvements (#3072)
* Use proper auth chain before checking parameters

* Refactor AnalyticsController

* Add a bunch of test and rewrite reactions counts with a single query

* Add tests for follows totals

* Use round and add more refactoring

* Add tests to group by day to fallback during refactoring

* Use group by to calculate comments count by day

* Use group by to calculate follows count by day

* Use group by to calculate reactions stats by day

* Use group by to calculate page_views stats by day

* Move calculations per day back in the cached block

* Add a few comments and a little bit of refactoring

* Add indexes (concurrently) for analytics

* Make tests more time robust

* Use a date range cache related to the requesting user or org

* Freezing time in UTC should help when tests are ran on time zones over the day line

* Remove explicit returns

* Page title is escaped, guard against that

* Move Analytics service spec in the proper place
2019-06-10 09:27:39 -04:00
..
assets Add badges to key tags (#3074) 2019-06-07 19:09:43 -04:00
black_box
controllers Analytics: refactoring for speed improvements (#3072) 2019-06-10 09:27:39 -04:00
dashboards
decorators
errors
facades/dashboard
fields
helpers Rubocop fixes (#3058) 2019-06-06 09:48:14 -04:00
javascript Add a space between "Change meta tag" and canonical_url (#3063) 2019-06-07 21:15:32 -04:00
jobs Moved Podcast#pull_all_episodes to a separate ActiveJob #2952 #2497 (#3057) 2019-06-06 09:49:10 -04:00
labor Add badges to key tags (#3074) 2019-06-07 19:09:43 -04:00
lib Add linuxrocks.online to Mastodon whitelist (#3068) 2019-06-07 10:02:49 -04:00
liquid_tags Rubocop fixes (#3058) 2019-06-06 09:48:14 -04:00
mailers
models Add badges to key tags (#3074) 2019-06-07 19:09:43 -04:00
observers Update Slack Notifications (#2870) [ci skip] 2019-05-21 15:06:04 -04:00
policies Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
sanitizers
services Analytics: refactoring for speed improvements (#3072) 2019-06-10 09:27:39 -04:00
uploaders
views Add badges to key tags (#3074) 2019-06-07 19:09:43 -04:00