docbrown/app
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
..
assets [CP] fix multiple reaction icons joined by commas (#19288) 2023-04-04 22:34:18 +05:30
controllers Resolves false-positive UnsafeRedirectError (#19297) 2023-04-07 09:17:56 -04:00
decorators Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
helpers Fix bullet issue with includes commentable (#19145) 2023-03-20 16:08:03 +01:00
javascript Add an article exclusion list to Billboards (#19280) 2023-04-05 09:10:22 -04:00
lib Remove Vault Secrets page from admin interface (#18795) 2022-12-02 10:03:39 -06:00
liquid_tags Allow codepen retries in UnifiedEmbed(#19271) 2023-03-29 15:05:30 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
policies Clear trusted cache in rolify callback (#19275) 2023-04-03 14:45:00 +02:00
queries Add an article exclusion list to Billboards (#19280) 2023-04-05 09:10:22 -04:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers (Really) Enable multiple reactions on #index (#19202) 2023-03-22 10:20:00 -04:00
services Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Add an article exclusion list to Billboards (#19280) 2023-04-05 09:10:22 -04:00
workers Bust article on initial reactions to fix cached HTML issue (#19149) 2023-02-20 16:31:38 -05:00