docbrown/app/policies
Corey Alexander ec388804df Embed Twitch Live Streaming (#2591)
* Get a job created that can create a webhook subscription for a twitch user login

* Remove ngork url

* Refactor add store the access token in the cache

* Get a controller stood up to recieve the webhooks. Now they just need to be processed

* Get User columns added and got webhook controller bones working

* Update the webhook job to use the User

* Add a way for the User to input their Twitch User Name. Plus a linter fix

* Delay webhook registration when profile is updated

* Don't add _ in username

* Use String columns

* Quick fix and add some more requests specs

* Specs for the webhook job

* Get a show page Twitch Live Streams. Just a straight embed of the Twitch Everything Embed UI. Works surprisingly well responsively, and works on all screen sizes

* Fix Gemfile.lock from merge issues

* Add support for expired tokens and add spec

* Add secrets to webhook registration and clean up spec to remove token logic

* Verify webhook secret and spec it

* Add rake task to enqueue webhook registration for all Users. This can be used from Heroku Scheduler

* Update the lease seconds to be for 5 days

* Actually lets do 7 so we can refresh twice a week and try to make sure that we can always miss one

* Hijack the existing Twitch logo instead of making a duplicate one

* Remove comment and replace with log line

* Remove some white space

* Log to Airbrake when webhook errors occur

* Move to passing in an id instead of User object

* Extract logic from Job to Service object

* Capitilize in the view

* Move out of models and into services

* Remove letover stub

* Remove one usage of Faraday

* Use HTTParty for all the HTTP here
2019-04-29 18:11:53 -04:00
..
admin_policy.rb Various internal functionality adjustments (#1264) 2018-12-05 13:28:46 -05:00
api_secret_policy.rb ApiSecret model for Developer API (#1369) 2019-01-08 12:30:54 -05:00
application_policy.rb Add ability for trusted users to suggest social copy for posts (#2306) 2019-04-04 17:01:58 -04:00
article_policy.rb Add OrganizationMembership model (#2471) 2019-04-22 14:08:02 -04:00
block_policy.rb #260 increase mentee-mentor description length (#405) 2018-08-20 10:20:23 -04:00
buffer_update_policy.rb Add ability for trusted users to suggest social copy for posts (#2306) 2019-04-04 17:01:58 -04:00
chat_channel_membership_policy.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channel_policy.rb Clean up new chat channel functionality and add tests (#2220) 2019-03-26 13:35:32 -04:00
classified_listing_policy.rb Classified Listings (#2545) 2019-04-24 16:17:01 -04:00
comment_policy.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
follow_policy.rb Add point weights for tag follows (#1229) 2018-11-30 15:36:58 -05:00
github_repo_policy.rb Use Preact for asynchronous rendering for /settings/integrations (#986) 2018-10-31 15:51:07 -04:00
html_variant_policy.rb Add below-article html variant (#1669) 2019-01-28 14:31:43 -05:00
image_upload_policy.rb Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
message_policy.rb Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
organization_policy.rb Update pro dashboard permissions for organization members (#2173) 2019-03-22 12:40:31 -04:00
rating_vote_policy.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reaction_policy.rb [Done] Add Reaction Policy Spec (#547) 2018-07-10 14:12:04 -04:00
stripe_active_card_policy.rb Add stripe policies and specs (#529) 2018-07-02 17:19:25 -04:00
stripe_subscription_policy.rb Add stripe policies and specs (#529) 2018-07-02 17:19:25 -04:00
tag_policy.rb Update tag admin page(#1990) 2019-03-06 14:28:30 -05:00
user_policy.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
video_policy.rb Remove harsh video restriction and add video duration (#1811) 2019-02-16 17:42:44 -04:00