docbrown/spec/services/users
Joshua Wehner a20cf3e02b
Unique cross-model-slug check is likely misconfigured (#19263)
* Page unique_cross_model_slug seems misconfigured

* Update validator test

* More verbose invalid attribute message

* Try dynamic model/attribute registration

* Rubocop

* Use the cross-model-slug existence check

* Register with the dynamic cross-model-slug checker

* Cleanup

* Add missing keys to fr

* Update format regex

* Adjust validation: always presence, unique if changed

* Tests can create reserved-word pages when they need to

* Slugs can be mixed case?

* Case-sensitive is better, actually

* Refactor to use CrossModel check

* Refactor, rename for clarity

* Refactor, avoid mocking oneself

* Refactor, injectable everything

* Add reservedword check to extracted exists? checker

* Move to concerns

* Without dynamic registration

* extend when needed

* Cleanup comments, remove registration references

---------

Co-authored-by: Goran <gorang.pub@gmail.com>
2023-04-07 17:04:45 +02:00
..
approved_liquid_tags_spec.rb Move method #approved_liquid_tags to user service (#10663) 2020-10-07 12:04:08 +07:00
create_mascot_account_spec.rb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
delete_articles_spec.rb Remove discussion locks prior to deleting an article (#14488) 2021-08-12 10:50:01 -04:00
delete_comments_spec.rb Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606) 2021-05-03 11:09:45 -04:00
delete_podcasts_spec.rb Ensuring we delete podcasts when we banish a user (#18063) 2022-07-12 09:18:06 -04:00
delete_spec.rb ✂️✂️✂️ Part 2: Remove Sponsorship (#18522) 2022-10-04 19:02:44 +02:00
profile_image_generator_spec.rb Update Users::ProfileImageGenerator (#19040) 2023-02-01 06:12:26 -05:00
remove_role_spec.rb Fix app/services' ruby 2.7 kwargs warnings (#13177) 2021-04-01 18:40:50 -04:00
safe_remote_profile_image_url_spec.rb Update Users::ProfileImageGenerator (#19040) 2023-02-01 06:12:26 -05:00
suggest_for_sidebar_spec.rb Don't suggest author follows for anonymous visitors (#16825) 2022-03-08 11:15:06 -06:00
suggest_recent_spec.rb Change article factory to include a flare tag "discuss" (#13760) 2021-05-14 07:43:39 -05:00
update_spec.rb Remove brand_color2 from users_settings (#18473) 2022-09-21 11:21:29 -06:00
username_generator_spec.rb Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00