docbrown/app
Alex 8714a36d27
[deploy] User subscriptions API and backend updates (#8779)
* Create "blank" EmailSubscriptionTag

* Refactor liquid_tags_used with spec

* Create /user_subscriptions#create

- Update liquid tag name to UserSubscriptionTag

* Add rate limiting and specs

* Add counter_culture for user_subscriptions

* Update /async_info/base_data

- Alphabetize user_data
- Add email
- Add subscription_source_article_ids
- Cache subscription_source_article_ids on User model

* Add stale email check and specs

* Change user_email to subscriber_email for clarity

* Restrict UserSubscriptionTag

* Rename RESTRICTED_TAGS to RESTRICTED_LIQUID_TAGS

* Make TODO comment more clear

* Refactor error responses and update specs

* Update type to source_type in error message

* Use constantize over safe_constantize

* Add check for active source

* Refactor checking of current_user's subscriptions

- Remove data from async_info
- Create a new service to fetch/cache a user's existing subscriptions

* Restrict email in base_data to admin roles

* Oops! Rename liquid tag file

* Change error back to result...oops!

* It's not goodbye, it's see you later. RIP email :/

* Add current_email to /user_subscriptions/base_data

* Revert adding current_email

* Undo async_info_controller changes/fix conflict

* Move params to constant

* Refactor SubscriptionCacheChecker

* Remove duplicate status code in JSON response

* Remove duplicate status code for #subscribed

* Use response.parsed_body

* Remove user guard in SubscriptionCacheChecker
2020-06-23 13:43:32 -04:00
..
assets Remove inline style from KatexTag template (#8833) 2020-06-23 08:56:01 +02:00
black_box [deploy] Remove Google Analytics page counts (#6969) 2020-04-14 10:44:05 -04:00
controllers [deploy] User subscriptions API and backend updates (#8779) 2020-06-23 13:43:32 -04:00
dashboards [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
decorators Update UserDecorator not to cache AR Object (#8378) 2020-06-10 16:39:36 +02:00
errors [deploy] Create FastlyConfig & refactor params safe list (#7630) 2020-05-01 11:23:48 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers [deploy] User subscriptions API and backend updates (#8779) 2020-06-23 13:43:32 -04:00
javascript Fixed warning notice Storybook name (#8856) 2020-06-23 10:13:58 -04:00
labor Remove trailing slashes from URLs to improve SEO (#8836) [deploy] 2020-06-22 13:44:58 -07:00
lib Routine rubocop fixes (#8346) 2020-06-08 17:37:25 +02:00
liquid_tags [deploy] User subscriptions API and backend updates (#8779) 2020-06-23 13:43:32 -04:00
mailers Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
models [deploy] User subscriptions API and backend updates (#8779) 2020-06-23 13:43:32 -04:00
policies [deploy] Refactor 🚀 : Replaced Chat Channel Setting page with Preact component. (#8271) 2020-06-10 16:58:37 -04:00
presenters [deploy] Refactor 🚀 : Replaced Chat Channel Setting page with Preact component. (#8271) 2020-06-10 16:58:37 -04:00
queries/internal Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers [deploy] Remove user_counters table (#8445) 2020-06-15 11:46:02 -04:00
services [deploy] User subscriptions API and backend updates (#8779) 2020-06-23 13:43:32 -04:00
uploaders Limit ALL Upload file sizes to 25 MB (#5356) [deploy] 2020-01-07 11:20:40 -05:00
view_objects [deploy] Fix height/width mismatch (#7485) 2020-04-23 13:38:10 -04:00
views modify meta tag according to the twitter doc to return large images (#8858) 2020-06-23 13:03:28 -04:00
workers Use Rails 6 new features in the code (#8342) 2020-06-08 16:06:29 -04:00