docbrown/spec
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
..
controllers/concerns 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
decorators Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
factories v1 documentation via RSwag (#17990) 2022-07-08 14:37:30 -05:00
fixtures Ensuring that embed fallback renders URL (#17680) 2022-05-17 07:43:17 -04:00
forms Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
generator Add service generator (#11265) 2020-11-10 09:09:35 +07:00
helpers Remove generated social images, except for articles#show (#18118) 2022-07-18 12:29:21 +02:00
initializers A suspended user returns 403 instead of 500 (#16408) 2022-02-04 09:42:23 -05:00
lib Fixed most rubocop issues (#18048) 2022-07-07 14:36:08 -06:00
liquid_tags Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
mailers Fixed most rubocop issues (#18048) 2022-07-07 14:36:08 -06:00
models Fixed most rubocop issues (#18048) 2022-07-07 14:36:08 -06:00
policies Allow trusted user to access response templates (#17978) 2022-07-12 11:37:59 +02:00
queries ensure all test users are explicitly named (#18181) 2022-07-20 09:34:05 -06:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests Change "posted on" to "scheduled for" on the scheduled articles preview page (#18177) 2022-07-20 16:09:34 +03:00
routing Remove profile admin feature flag (#17194) 2022-04-11 09:27:35 -05:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
services Adding conditional spam handling for user profile (#18158) 2022-07-20 11:36:10 -04:00
support Member index: Filter by joining date (#17975) 2022-07-14 14:52:42 +01:00
system Fixed most rubocop issues (#18048) 2022-07-07 14:36:08 -06:00
tasks Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00
uploaders Remove Remaining logo_svg Code (#16291) 2022-02-22 12:05:16 -07:00
validators Don't raise error when empty community emoji setting submitted (#15723) 2021-12-17 09:29:55 -06:00
view_objects Avoid using robohash for factory generated article cover images (#17024) 2022-03-28 14:01:29 -05:00
views Adding logic to hide Create Post on empty dashboard (#17149) 2022-04-11 13:52:35 -04:00
workers Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
i18n_spec.rb Show missing translation keys when test fails (#16637) 2022-02-17 16:21:29 -06:00
rails_helper.rb Adding a field test option for post publishing goals (#17589) 2022-05-06 13:54:50 -04:00
spec_helper.rb Bump to Rails 7.0.2.2 MVP (#15908) 2022-03-30 15:00:33 -04:00
swagger_helper.rb v1 documentation via RSwag (#17990) 2022-07-08 14:37:30 -05:00