docbrown/config
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
..
environments Allow dynamic authoring of welcome notifications (#6045) [deploy] 2020-02-12 13:50:37 -08:00
initializers Update doorkeeper initializer with new (disabled) features (#6011) 2020-02-11 16:04:52 -05:00
locales Update initializer and locales to doorkeeper 5.2.2 (#5004) 2019-12-04 11:44:46 -05:00
webpack Reduce Airbrake's error output (#628) 2018-07-27 09:04:52 -07:00
application.rb Revert "Update queue_adapter to Sidekiq (#5960)" (#5961) [deploy] 2020-02-07 18:37:05 -05:00
boot.rb Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
cable.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
database.yml Simplify development setup (#2143) 2019-03-25 12:53:39 -04:00
environment.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
puma.rb Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
routes.rb Add health check endpoint for Mailchimp unsubscribe webhook (#6034) [deploy] 2020-02-12 15:55:21 -05:00
sample_application.yml Remove unused Envfile variables (#5474) 2020-01-14 12:05:35 -05:00
secrets.yml Initial commit 2018-02-28 16:11:08 -05:00
sidekiq.yml setup sidekiq queues for different priority jobs (#5300) [deploy] 2019-12-30 10:16:52 -06:00
sitemap.rb Remove ENV["USE_NEW_AWS"] and use Orig ENV variables for New Creds (#5771) [deploy] 2020-01-27 15:46:57 -05:00
spring.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
storage.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
webpacker.yml Make adjustments and fixes to DEV Conncect (#427) 2018-06-13 14:46:30 -04:00