docbrown/spec/services
Jeremy Friesen 427cec341c
Adding conditional spam handling for user profile (#18158)
* Adding conditional spam handling for user profile

Prior to this commit, we always checked the user's name for spam
matching criteria.  With this change, we're allowing a site
administrator to toggle on a feature flag for more rigorous profile
checking.

The reason for the increased rigor is that there could be unexpected
consequences (e.g. marking a user as spam who was previously not caught
as a spammer).  If you want the feature, enable the
`:more_rigorous_user_profile_spam_checking` flag.

Closes forem/forem#18157
Related to forem/forem-internal-eng#453

* Adding additional test case

* Update spec/services/spam/handler_spec.rb

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
2022-07-20 11:36:10 -04:00
..
admin Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
articles Unpublish post service class + V1 API endpoint (#18031) 2022-07-08 09:08:55 -06:00
audit Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
authentication Devise skip_confirmation on authenticator service (#18169) 2022-07-20 07:26:26 -06:00
badges Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
broadcasts/welcome_notification Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
color Spelling (#15702) 2021-12-07 06:59:10 -07:00
credits Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
discover Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
edge_cache ✂✂✂ Remove events (#15062) 2021-10-15 09:31:08 -04:00
exporter Create Settings::SMTP (#13943) 2021-06-14 10:29:43 -04:00
fastly_config Abstract DatadogStatsClient to ForemStatsClient (#12304) 2021-01-27 11:25:44 -05:00
feeds Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
follows Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
giphy Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
github Implement Unified Embeds for Github Repo, Issue, Pull-Request and Comment URLs (#16422) 2022-02-07 16:38:43 -05:00
homepage Extracting duplicate logic (#16035) 2022-01-10 15:19:04 -05:00
html Remove line break after linking username mentions (#15788) 2021-12-16 10:39:07 -06:00
images Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
listings ListingsToolkit refactoring (#16184) 2022-01-21 09:27:10 +07:00
loggers Move LogWorkerQueueStats from labor to services (#11642) 2020-11-30 09:31:15 +07:00
mailchimp Permanently delete users from Mailchimp automatically (#17395) 2022-04-26 09:48:50 -04:00
markdown_processor Possibly fixes style injection? (#18053) 2022-07-07 16:05:33 +02:00
mentions Use Sidekiq::Job module alias for Sidekiq::Worker (#17526) 2022-05-02 11:12:58 -05:00
moderator Ensuring we delete podcasts when we banish a user (#18063) 2022-07-12 09:18:06 -04:00
notification_subscriptions Add Article post_commit when user_id changes with specs (#15132) 2021-10-25 10:53:21 +07:00
notifications Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
organizations Organizations delete optimizations and refactoring (#13610) 2021-05-11 12:14:55 +03:00
payments Validate payment info present before attempting to process (#15629) 2021-12-03 13:09:23 -06:00
podcasts Add timeout to GetMediaUrl's HTTParty (#18136) 2022-07-15 17:33:44 -04:00
profile_fields Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
push_notifications Fix Rpush app when creating Android notification (#15529) 2021-11-30 10:05:40 +05:30
re_captcha Spelling (#15702) 2021-12-07 06:59:10 -07:00
search Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
settings/authentication Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
slack Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
spam Adding conditional spam handling for user profile (#18158) 2022-07-20 11:36:10 -04:00
tag_moderators ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
twitter_client Match error class using case instead of if/elsif/else (#16952) 2022-03-21 15:34:49 -05:00
user_subscriptions Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
users Ensuring we delete podcasts when we banish a user (#18063) 2022-07-12 09:18:06 -04:00
analytics_service_spec.rb Expect to raise error should use a block (#17131) 2022-04-05 13:21:23 -06:00
article_with_video_creation_service_spec.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
bulk_sql_delete_spec.rb Routine rubocop fixes (#10237) 2020-09-08 12:06:47 -04:00
email_digest_article_collector_spec.rb Don't include "anti-followed" tags in email digest (#14782) 2021-09-30 10:44:38 +07:00
email_digest_spec.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
feature_flag_spec.rb Add FeatureFlag.all (#16496) 2022-02-11 13:38:17 +07:00
flare_tag_spec.rb Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
medium_article_retrieval_service_spec.rb Nokogiri::HTML should receive the body, not the response object (#5297) 2019-12-31 08:46:49 -05:00
open_graph_spec.rb OpenGraph fallback for Embeds (merge-by-any-core) (#17001) 2022-04-04 15:31:38 -04:00
rate_limit_checker_spec.rb Fixing Rubocop's auto-correct recommendations (#16098) 2022-01-13 21:40:19 -05:00
tag_adjustment_creation_service_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
tag_adjustment_update_service_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00