docbrown/app
Julianna Tetreault e8183189a7
Add welcome thread welcome notification (#6221) [deploy]
* Add Welcome Thread Broadcast to generator.rb

* Add welcome trait to broadcasts.rb

* Add additional tests around welcome_broadcasts:
- ensure that the correct Broadcast is sent
- ensure that a User only receives a single Notification
- ensure that only certain Users receieve the Notification

* Refactor and remove unncessary code from generator.rb and generator_spec.rb

* Refactor generator_spec and eagerly load welcome_thread_comment to get spec passing

* Initialize user in place of receiver_id in generator.rb

* Add before action to make generator_spec more readable

* Add latest_published_thread method to generator.rb

  * Update generator.rb to be reusable with latest_published_thread
  * Update generator_spec to use welcome tags for Article obj
  * Create mascot_account using let to reduce User creation in spec

* Adjust expectation for a User who should not receive a notification
2020-03-19 18:57:32 +01:00
..
assets Fix comments preview paragraph spacing (#6697) 2020-03-19 14:56:21 +01:00
black_box Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
controllers Allow communities to dictate authentication providers (#6639) [deploy] 2020-03-18 16:41:39 -04:00
dashboards Add HtmlVariantSuccess and HtmlVariantTrial dashboards (#6262) [deploy] 2020-02-27 08:34:10 -06:00
decorators Use scopes for Follow instead of where all the time (#6149) [deploy] 2020-02-25 19:29:52 -05:00
errors Centralize search error handling (#6227) [deploy] 2020-02-25 14:03:49 -05:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Introduce app_url helper (#6715) 2020-03-19 15:03:26 +01:00
javascript Internal bug fixes and misc JS/CSS cleanup (#6684) 2020-03-18 16:05:33 -05:00
labor Remove GIF (#6588) [deploy] 2020-03-11 16:54:36 +01:00
lib Allow different casings to be specified for syntax highlighting (#6354) 2020-02-28 12:36:27 -05:00
liquid_tags Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
mailers Add a form to email users from internal (#6668) 2020-03-17 11:19:42 -04:00
models Allow communities to dictate authentication providers (#6639) [deploy] 2020-03-18 16:41:39 -04:00
policies [deploy] Remove github_repos from public API (#6304) 2020-02-26 11:23:39 -05:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers Add profile image field to Elasticsearch for presenting after search (#6600) 2020-03-11 18:43:29 -04:00
services Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
uploaders Limit ALL Upload file sizes to 25 MB (#5356) [deploy] 2020-01-07 11:20:40 -05:00
view_objects Remove RedisRailsCache and replace with Rails.cache (#5059) [deploy] 2019-12-10 13:11:08 -06:00
views Use Rails URL helpers where possible (#6711) [deploy] 2020-03-19 10:24:44 -04:00
workers Add two new experiments and one new conversion event (#6633) [deploy] 2020-03-16 18:16:02 -04:00