docbrown/app/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.rb Refactoring questions asked of user (#15762) 2021-12-21 12:45:12 -05:00
create_mascot_account.rb small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
delete.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
delete_activity.rb Do not nullify abuse_report when banishing user (#19084) 2023-02-09 11:32:38 -05:00
delete_articles.rb Remove discussion locks prior to deleting an article (#14488) 2021-08-12 10:50:01 -04:00
delete_comments.rb Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606) 2021-05-03 11:09:45 -04:00
delete_podcasts.rb Ensuring we delete podcasts when we banish a user (#18063) 2022-07-12 09:18:06 -04:00
profile_image_generator.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
remove_role.rb app/services i18n (#16189) 2022-01-20 09:25:25 -05:00
request_destroy.rb [deploy] Use Action Mailer parameterized syntax (#8853) 2020-06-23 13:48:41 -05:00
safe_remote_profile_image_url.rb Fix bug where OAuth signups were not pulling in OAuth provider's profile image (#14711) 2021-09-14 22:13:16 -04:00
suggest_for_sidebar.rb Don't suggest author follows for anonymous visitors (#16825) 2022-03-08 11:15:06 -06:00
suggest_recent.rb Profile generalization cleanup phase 2 (#14555) 2021-08-27 09:17:26 +07:00
update.rb Remove brand_color2 from users_settings (#18473) 2022-09-21 11:21:29 -06:00
username_generator.rb Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00