docbrown/app/views/internal
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
..
articles Remove extra whitespace from text inputs in Buffer share (#5924) [deploy] 2020-02-06 15:18:58 -05:00
badges Improve dropdown UX for internal/badges (#5880) [deploy] 2020-02-04 09:02:14 -08:00
broadcasts Allow dynamic authoring of welcome notifications (#6045) [deploy] 2020-02-12 13:50:37 -08:00
chat_channels Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
classified_listings Add StimulusJS and Refactor Internal article_script (#5539) deploy] 2020-01-24 16:00:24 -05:00
comments Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
configs Do not allow staff_user_id to be mutated (#6009) [deploy] 2020-02-10 16:35:18 -08:00
events Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
feedback_messages Internal Reports: Searching and sorting with Ransack (#5447) [deploy] 2020-01-16 15:02:09 -05:00
growth Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
mods Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
organizations Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
pages Added template select to the pages admin form (#5952) [deploy] 2020-02-07 14:59:05 -05:00
permissions Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
podcasts Use cleverer patterns to fetch/iterate AR objects when checking presence (#5833) [deploy] 2020-02-05 08:21:20 -05:00
shared Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
tags Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
tools Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
users Add whitespace to internal users edit page (#5840) 2020-02-03 11:34:31 -05:00
webhook_endpoints Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00
welcome Refactor/internal ui update (#5339) [deploy] 2020-01-06 07:58:03 -05:00