docbrown/spec/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 [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
moderation Skip moderation notification if the user is the moderator (#6200) 2020-02-20 14:09:43 -05:00
new_badge_achievement Add a default message to badge award action (#5160) 2019-12-19 10:38:57 -05: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 Replace activerecord-import with Rails 6 insert_all and upsert_all (#8407) 2020-06-12 11:16:06 +02:00
reactions Replace dry-struct with ActiveModel (#9534) 2020-07-27 17:42:37 +02:00
tag_adjustment_notification [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
welcome_notification Abstract DatadogStatsClient to ForemStatsClient (#12304) 2021-01-27 11:25:44 -05:00
remove_all_by_action_spec.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
remove_all_spec.rb Rubocop: enable and fix new Rails cops (#9537) 2020-07-29 11:14:19 +02:00
update_spec.rb Flaky Spec Fix:Remove let_it_be Test Prof Helper (#9556) 2020-07-29 11:31:01 +02:00