docbrown/app/controllers
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 Add Twitch to Profile Links (#2557) 2019-04-25 16:14:28 -04:00
api/v0 Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
concerns Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
internal Add credit form to internal/users (#2581) 2019-04-26 12:48:00 -04:00
notifications Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
additional_content_boxes_controller.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
api_secrets_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
application_controller.rb Remove extra param and add message for prefill (#2487) 2019-04-18 15:34:50 -04:00
article_mutes_controller.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
articles_controller.rb Remove unnecessary map functions in stories controller (#2402) 2019-04-12 01:10:08 -04:00
async_info_controller.rb Add GA_FETCH_RATE ENV var to ease rate limiting (#2461) 2019-04-15 14:11:55 -04:00
badges_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
blocks_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
buffer_updates_controller.rb Fix social share text bugs (#2341) 2019-04-08 17:43:27 -04:00
buffered_articles_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
chat_channel_memberships_controller.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channels_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
classified_listings_controller.rb Fix/improve edits for listings (#2555) 2019-04-25 16:12:50 -04:00
comment_mutes_controller.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
comments_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
credits_controller.rb Fix lints (#2553) [ci skip] 2019-04-25 07:56:15 -04:00
dashboards_controller.rb Add GA_FETCH_RATE ENV var to ease rate limiting (#2461) 2019-04-15 14:11:55 -04:00
email_subscriptions_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
events_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
feedback_messages_controller.rb Removed bug reports from app (#1565) 2019-01-16 11:28:59 -05:00
followed_articles_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
follows_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
ga_events_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
github_repos_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
giveaways_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
html_variant_successes_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variant_trials_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variants_controller.rb Rubocop fixes (#2232) 2019-03-28 07:35:17 -04:00
image_uploads_controller.rb Implement image upload's error handling (#2018) 2019-03-21 12:31:51 -04:00
live_articles_controller.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
messages_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
moderations_controller.rb Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
notifications_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
omniauth_callbacks_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
organizations_controller.rb Add OrganizationMembership model (#2471) 2019-04-22 14:08:02 -04:00
page_views_controller.rb Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -04:00
pages_controller.rb Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
podcast_episodes_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
push_notification_subscriptions_controller.rb Add more test coverage (#1829) 2019-02-22 09:16:57 -08:00
pusher_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
rating_votes_controller.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
reading_list_items_controller.rb Add more request specs (#460) 2018-06-20 17:46:23 -04:00
registrations_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
social_previews_controller.rb Social Card upgrade - Part 1 (#2090) 2019-03-22 16:28:02 -04:00
stories_controller.rb Remove unnecessary map functions in stories controller (#2402) 2019-04-12 01:10:08 -04:00
stripe_active_cards_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
stripe_cancellations_controller.rb Add Stripe Cancellation Webhook (#1682) 2019-02-13 15:56:19 -05:00
stripe_subscriptions_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
tag_adjustments_controller.rb Fix braces around hash params Rubocop offense (#1453) 2019-01-11 13:08:45 -05:00
tags_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
twilio_tokens_controller.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
twitch_live_streams_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
twitch_stream_updates_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
users_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
video_states_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
videos_controller.rb Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00