docbrown/spec/requests
Vaidehi Joshi f71c8b16e7
Allow dynamic authoring of welcome notifications (#6045) [deploy]
* Add "Welcome" type to Broadcasts, allow dynamic "authoring" of Broadcasts

This adds a new `type_of` to the Broadcast model: "Welcome". As we begin to create a new "welcome notification" workflow, we'll categorize them by making them all of the same type.

This also adds a concept of a "welcoming user", which can be set via an ENV var. The WELCOMING_USER_ID will allow us to explicitly set (and change) which user in the database is the one that "sends" welcoming notification. In production, we plan for this to be dev.to/sloan.

* Allow WelcomeNotificationWorker to accept + send any kind of broadcast

This abstracts out the logic of deciding which broadcast to send from the woker into the calling method. This will help us send many different kinds of welcome notifications using one, resuable worker class.

* Raise if a Notification can't be created

* Add STAFF_USER_ID as an ENV var

This is in preparation for moving away from SiteConfig.staff_user_id, and replacing it with an ENV var. We will need to set this in production first, and then make a separate PR to replace all instances of staff_user_id with the newly-set ENV var.
2020-02-12 13:50:37 -08:00
..
admin Move Podcasts::GetEpisodesJob to Sidekiq (#5443) [deploy] 2020-02-06 09:42:55 -08:00
api/v0 Validate that API article params are a Hash (#5963) 2020-02-10 10:24:11 -05:00
articles Move Webhook::DispatchEventJob to Sidekiq (#5722) [deploy] 2020-01-27 14:36:27 -05:00
incoming_webhooks/mailchimp Add health check endpoint for Mailchimp unsubscribe webhook (#6034) [deploy] 2020-02-12 15:55:21 -05:00
internal Do not allow staff_user_id to be mutated (#6009) [deploy] 2020-02-10 16:35:18 -08:00
notifications Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
oauth Change Webhook::DestroyJob to Wehook::DestroyWorker and move to sidekiq (#5424) [deploy] 2020-01-13 12:38:10 -06:00
podcasts Creating podcasts by users (#3730) [deploy] 2020-01-08 16:14:25 -05:00
shared_examples Hide comment feature (#4944) 2019-12-10 15:09:47 -05:00
user Use post instead of get for CSRF (#6026) 2020-02-11 17:56:11 -05:00
additional_content_boxes_spec.rb Fix (some) n+1/eager loading issues (#5294) [deploy] 2020-01-08 18:48:24 -05:00
api_secrets_create_spec.rb Use Redis for session storage (#4004) [deploy] 2019-11-12 10:10:34 -06:00
api_secrets_destroy_spec.rb Fix access token revoking (#3131) 2019-06-11 15:53:58 -04:00
async_info_spec.rb Migrate to streaming app shell via serviceworkers (#5020) [deploy] 2019-12-16 12:21:33 -05:00
badges_spec.rb Add badges index page. (#4236) 2019-10-06 17:34:52 -04:00
blocks_spec.rb Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
buffer_updates_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
buffered_articles_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
chat_channel_memberships_spec.rb Return NotFound error if ChatChannelMembership is not found (#5806) 2020-02-05 12:24:40 -05:00
chat_channels_spec.rb Feature🚀: Ability to mention anyone in open chats and notify them (#5460) [deploy] 2020-01-23 18:06:35 -05:00
classified_listings_spec.rb Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
comments_create_spec.rb comment_controller: add skip_auth to rescue error block (#5728) 2020-01-27 14:35:53 -05:00
comments_destroy_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
comments_spec.rb Allow deleting comments if article has already been deleted (#5889) [deploy] 2020-02-05 17:10:19 -05:00
comments_update_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
credits_spec.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
dashboard_spec.rb Add pagination to followers and following page in dashboard (#258) (#4375) [deploy] 2019-11-20 18:21:18 -05:00
delayed_job_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
display_ad_events_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
editor_spec.rb Remove extra param and add message for prefill (#2487) 2019-04-18 15:34:50 -04:00
email_subscriptions_spec.rb Remove controller specs (#2224) 2019-03-29 19:05:02 -04:00
events_spec.rb Return a 404 response If @event is Not Found (#5798) [deploy] 2020-02-03 11:30:52 -05:00
feedback_messages_create_spec.rb Fix 404 issue when submitting abuse report (#3038) 2019-06-03 19:24:24 -04:00
follows_create_spec.rb Refactor RateLimitChecker (#5521) 2020-01-20 11:27:54 -05:00
follows_show_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
follows_update_spec.rb Remove code for legacy mentoring feature (#3186) 2019-06-21 17:18:11 -04:00
ga_events_spec.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
github_repos_spec.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
history_spec.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
html_variant_successes_spec.rb Move HtmlVariantSuccess.create delay calls to ActiveJob (#3173) 2019-06-18 21:36:33 -04:00
html_variant_trials_spec.rb Move HtmlVariantTrial.create delay calls to ActiveJob (#3173) (#3239) 2019-06-20 18:14:20 -04:00
html_variants_spec.rb Improve test speed (#3957) [ci skip] 2019-09-12 16:17:20 -04:00
image_uploads_spec.rb Fix rubocop Rails.root.path complaints (#5114) 2019-12-16 12:13:15 -05:00
liquid_embeds_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
listings_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
live_articles_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
messages_spec.rb 🚀Feature/ability to edit messages (#5139) [deploy] 2019-12-20 10:19:00 -05:00
moderations_spec.rb fix response when article can't be found (#5999) 2020-02-11 15:23:44 -05:00
notification_counts_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
notification_subscriptions_spec.rb Finalize UI for all types of notification settings (#3164) 2019-06-14 18:28:38 -04:00
notifications_spec.rb Allow dynamic authoring of welcome notifications (#6045) [deploy] 2020-02-12 13:50:37 -08:00
organizations_update_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
page_views_spec.rb Only Update page_views When They Are Valid (ie created) (#5195) [deploy] 2019-12-26 11:28:18 -06:00
pages_spec.rb Create dynamic robots.txt page (#5794) [deploy] 2020-01-28 16:49:34 -05:00
partnerships_spec.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
poll_skips_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
poll_votes_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
pro_memberships_spec.rb Refactor/user bust cache job (#5563) 2020-01-20 13:46:15 -05:00
profile_pins_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
pusher_auth_spec.rb Remove commented code and tests (#3989) [ci skip] 2019-09-09 14:51:02 -04:00
rating_votes_spec.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
reading_list_items_spec.rb Update ReadingListItemsController#update to return NotAuthorized (#5658) 2020-01-23 13:22:48 -05:00
registration_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
rss_feed_spec.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
service_worker_spec.rb Migrate to streaming app shell via serviceworkers (#5020) [deploy] 2019-12-16 12:21:33 -05:00
shells_spec.rb Add edge caching to shell (#5146) [deploy] 2019-12-16 19:08:59 -05:00
social_previews_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
stories_index_spec.rb Sponsorship Updates (#3719) 2019-08-16 14:54:26 -04:00
stories_show_spec.rb Add canonical url to posts even if internal nav (#5227) [deploy] 2019-12-27 10:58:23 -05:00
stripe_active_cards_spec.rb track stripe errors in Datadog so we can alert on them (#5797) 2020-02-03 09:11:38 -05:00
tag_adjustments_spec.rb Mod tooling: add tags via /mod (#4750) [deploy] 2019-11-21 16:32:32 -05:00
tags_spec.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
twilio_tokens_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
twitch_stream_updates_spec.rb Fix Typos (#3510) 2019-07-22 12:56:48 -04:00
user_blocks_spec.rb Hide a blocked user's content [deploy] (#4678) 2019-11-04 14:47:26 -05:00
users_onboarding_spec.rb Ensure user is authenticated before doing onboarding Actions (#5937) 2020-02-07 09:56:29 -05:00
video_states_update_spec.rb Return not_found Response If Video's Related Article is Not Found (#5169) [deploy] 2019-12-19 09:41:59 -06:00
videos_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00