docbrown/spec
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
..
controllers/concerns Fix connect account bug from settings (#18824) 2022-12-09 09:58:04 -06:00
decorators Try right-to-left for stack effect (#19083) 2023-02-10 11:01:03 +01:00
factories Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
fixtures Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
generator Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
helpers Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
initializers Add forgot_password_throttle (#19175) 2023-02-27 09:25:29 -05:00
lib Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
liquid_tags Try sanitizing user-agent during embed validation (#18857) 2022-12-21 15:32:31 +01:00
mailers Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
models Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
policies Change requirement for response_template (#18601) 2022-11-02 12:16:17 -04:00
queries Add an article exclusion list to Billboards (#19280) 2023-04-05 09:10:22 -04:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests Resolves false-positive UnsafeRedirectError (#19297) 2023-04-07 09:17:56 -04:00
routing Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04: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 Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
support Migrate initializeUserProfilePage to webpack (#19241) 2023-03-28 12:20:49 -04:00
system Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
tasks Change rake spec setup (#19012) 2023-01-30 10:51:38 -05:00
uploaders Remove Remaining logo_svg Code (#16291) 2022-02-22 12:05:16 -07:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
view_objects Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
views Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
workers Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
i18n_spec.rb Show missing translation keys when test fails (#16637) 2022-02-17 16:21:29 -06:00
rails_helper.rb Revert "Enable rspec-retry on system and request specs (#19103)" (#19133) 2023-02-16 17:41:51 -05:00
spec_helper.rb Add Codecov (#18580) 2022-10-18 10:08:23 -04:00
swagger_helper.rb Add an article exclusion list to Billboards (#19280) 2023-04-05 09:10:22 -04:00