discourse/plugins/chat/spec
Loïc Guitaut 050828d1de DEV: Allow chat services to have optional models
This is extracted from #22390.

This patch adds a new `optional` option to the `model` step. This
means if an optional model returns something blank (`nil` or an empty
collection) then the service won’t fail and will execute the next step.
However if a model is properly returned, the step will try to check if
it is valid or not (if it responds to `#invalid?`). If the model isn’t
valid, then the step will fail (so no change here).
2023-07-20 17:27:44 +02:00
..
components/chat DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
fabricators DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
integration DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
jobs FIX: Mark threads read when threading enabled for a channel (#22458) 2023-07-06 16:24:56 +10:00
lib DEV: Allow chat services to have optional models 2023-07-20 17:27:44 +02:00
mailers DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
models DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
queries/chat FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
requests DEV: check if user can_chat inside the can_join_chat_channel guardian (#21812) 2023-07-19 21:55:00 +04:00
serializer DEV: fixes flakey due to unordered array (#22515) 2023-07-10 17:26:29 +02:00
services DEV: check if user can_chat inside the can_join_chat_channel guardian (#21812) 2023-07-19 21:55:00 +04:00
support FEATURE: Show unread in sidebar for unread channel threads (#22342) 2023-07-17 13:00:49 +10:00
system DEV: check if user can_chat inside the can_join_chat_channel guardian (#21812) 2023-07-19 21:55:00 +04:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
plugin_spec.rb DEV: Move user count update for channels to ensure_consistency! (#22321) 2023-07-03 11:41:51 +10:00