docbrown/app/services
Andy Zhao 3e89796d9d Add API Analytics Endpoints (#2293)
* Add API endpoints for analytics

* Remove comment and spacing

* Use proper time formatting

* Refactor and clean up some logic

* Add pro and org member traits

* Use shared examples for analytics API spec

* Add analytics authorization specs

* Remove accidental include Pundit

* Raise not_authorized for invalid requests

* Make attributes and time methods private

* Add custom UnauthorizedError

* Raise and use rescue_from to handle 4xx requests

* Enforce date parameters to follow a specific format

* Use current user to allow same origin requests

* Use custom headers and not params for token auth

* Default to current user for same origin requests

* Use correct boolean for choosing user

* Update tests to use request headers and add stricter tests
2019-04-04 10:52:45 -04:00
..
exporter Export comments (#1471) 2019-01-16 12:54:45 -05:00
moderator Use nil instead of empty string w/ new db constraints (#2300) 2019-04-03 17:28:08 -04:00
notifications New comment notifications to Active Jobs #1996 (#2287) 2019-04-03 11:38:30 -04:00
rss_reader Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
suggester Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
analytics_service.rb Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
article_api_index_service.rb Fix error with articles API and unknown username (#2247) 2019-03-31 10:47:48 -04:00
article_creation_service.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
article_with_video_creation_service.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
authorization_service.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
chat_channel_creation_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channel_update_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
get_unseen_notifications_service.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
membership_service.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
moderation_service.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
notifications.rb New comment notifications to Active Jobs #1996 (#2287) 2019-04-03 11:38:30 -04:00
read_notifications_service.rb Organization Notifications (#1762) 2019-02-25 14:25:37 -08:00
rss_reader.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
tag_adjustment_creation_service.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
tag_adjustment_update_service.rb [WIP] Allow mods to remove tags and send user notification (#1252) 2018-12-04 16:45:32 -05:00