discourse/plugins/chat/spec/services
Joffrey JAFFEUX 40ce619edd
DEV: uses in: {} with lambda to work with eager_load (#25039)
When validating with a dynamic set of values, especially one that might change during runtime, we should use a lambda or a proc to ensure that the validation uses the most up-to-date set of values. This is particularly important when using config.eager_load = true, which can cause some elements to be loaded only once at startup, thus not reflecting changes made at runtime.

This was the root cause of the issues here, as we were adding more ReviewableScore types after initial load through: `register_reviewable_type Chat::ReviewableMessage`
2023-12-29 12:45:07 +08:00
..
actions DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
auto_remove DEV: more resilient auto remove spec (#22472) 2023-07-06 21:44:53 +02:00
chat DEV: uses in: {} with lambda to work with eager_load (#25039) 2023-12-29 12:45:07 +08:00