docbrown/app
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
..
assets Fixes night mode issue #2244 (#2285) 2019-04-02 16:08:26 -04:00
black_box Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
controllers Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
dashboards Allow orgs to be marked as sponsors (#2282) 2019-04-01 16:41:25 -04:00
decorators Enable performance rubocop cops (#2140) 2019-03-21 16:01:45 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
facades/dashboard Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Some night theme code, other style adjustments, and extracted app name into ENV var (#2289) 2019-04-02 13:10:28 -04:00
javascript block/report abuse in dev-connect (#2074) 2019-03-26 11:53:30 -04:00
jobs New comment notifications to Active Jobs #1996 (#2287) 2019-04-03 11:38:30 -04:00
labor Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
lib Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
liquid_tags Fix Blogcast styling issues (#2298) 2019-04-03 16:12:28 -04:00
mailers Fix issue with boosted article in email digest (#1936) 2019-03-01 13:51:06 -08:00
models Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
observers Replace puts with proper logging (#2139) 2019-03-21 13:00:21 -04:00
policies Clean up new chat channel functionality and add tests (#2220) 2019-03-26 13:35:32 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
services Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
uploaders Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
views Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00