docbrown/spec/services
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
..
edge_cache/commentable Refactor Comments::BustCacheJob to use a service (#2655) 2019-05-09 10:10:37 -04:00
exporter Fix name resolving error on export (#2612) 2019-04-29 15:37:50 -04:00
moderator Improve Internal Dashboards features(#2043) 2019-03-18 16:29:11 -04:00
notifications Move remove_each notifications method in own job (#2946) 2019-05-29 16:26:18 -04:00
streams Fix #2784, Don't fail when twitch returns no user data (#2865) 2019-05-17 10:54:29 -04:00
suggester Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
users Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
analytics_service_spec.rb Analytics: refactoring for speed improvements (#3072) 2019-06-10 09:27:39 -04:00
article_with_video_creation_service_spec.rb Add more test coverage (#1829) 2019-02-22 09:16:57 -08:00
authorization_service_spec.rb Touch profile_updated_at when updating social usernames (#2386) 2019-04-11 16:32:45 -04:00
membership_service_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
read_notifications_service_spec.rb Organization Notifications (#1762) 2019-02-25 14:25:37 -08:00
rss_reader_spec.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
tag_adjustment_creation_service_spec.rb Move tag adjustment notification to Active Jobs (#2654) 2019-05-10 11:06:29 -04:00
tag_adjustment_update_service_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00