docbrown/app/services/notifications
Kirk Haines ed74f2f245
Abstract DatadogStatsClient to ForemStatsClient (#12304)
* This change abstracts the DatadogStatsClient into a ForemStatsClient.
The purpose of this abstraction is to set the foundation for a subsequent PR that will allow one to use New Relic for recording Forem stats, instead of Datadog, if there is a New Relic configuration found.
This specific change creates an abstraction layer that can be built upon, without changing any actual default behavior. All specs still pass.

* Use delegate instead of explicit methods.

* Delegate instead of explicit methods.

* Fix the error.

* Refactor according to the suggestions in the comments.

* Ooops.  Stats work better when all of the code is committed.

* Removing the alias of count to increment since that was done in error.
2021-01-27 11:25:44 -05:00
..
milestone Remove app/labor/random_gif.rb (#11611) 2020-11-25 14:58:32 +00:00
moderation Skip moderation notification if the user is the moderator (#6200) 2020-02-20 14:09:43 -05:00
new_badge_achievement Move send new badge achievement notification to ActiveJob (#2474) 2019-04-29 10:51:08 -04:00
new_comment [deploy] Add ability for admin to add anti-spam terms (#10615) 2020-10-06 10:10:30 -04:00
new_follower Rubocop: Enable and fix Style/OptionalBooleanParameter cop (#9711) 2020-08-10 19:35:55 +02:00
new_mention Fix mention notification to mention proper user (#3721) 2019-08-14 14:43:21 -04:00
notifiable_action [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
reactions Replace dry-struct with ActiveModel (#9534) 2020-07-27 17:42:37 +02:00
tag_adjustment_notification Routine Rubocop fixes (#9302) 2020-07-14 17:24:03 +02:00
welcome_notification Abstract DatadogStatsClient to ForemStatsClient (#12304) 2021-01-27 11:25:44 -05:00
moderation.rb Rubocop: move dot in multi-line calls to leading position (#9262) 2020-07-16 15:51:11 +02:00
remove_all.rb Refactor remove_all and remove_each notifications and fix orphaned notifications (#3570) 2019-09-25 15:31:56 -04:00
remove_all_by_action.rb Refactor remove_all and remove_each notifications and fix orphaned notifications (#3570) 2019-09-25 15:31:56 -04:00
update.rb Remove .first query on notifications (#5943) 2020-02-07 08:58:51 -05:00