discourse/plugins/chat/app/services/chat
Loïc Guitaut afdb1ac0a0 DEV: Disallow default params in service steps
With the current implementation, a service step can be written as:
```ruby
def my_step(a_default_value: 2)
  …
end
```
That’s a pattern we want to avoid as default values (if needed) should
be probably defined in a contract.

This patch makes a service raise an exception if a default value is
encountered.
2024-09-19 14:47:55 +02:00
..
action DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
auto_remove DEV: Put back the `model` step in HandleCategoryUpdated service 2024-08-22 12:33:58 +02:00
channel/policy DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
direct_message_channel/policy DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
add_users_to_channel.rb DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
auto_join_channel_batch.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
create_category_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
create_direct_message_channel.rb DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
create_message.rb DEV: Introduce a `Service::ActionBase` class for service actions 2024-09-18 17:02:46 +02:00
create_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
flag_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
invite_users_to_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
leave_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
list_channel_messages.rb FIX: do not use return in block (#26260) 2024-03-20 10:49:28 +01:00
list_channel_thread_messages.rb FIX: allows listing messages of any thread (#27259) 2024-05-30 10:20:40 +02:00
list_user_channels.rb PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
lookup_channel_threads.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
lookup_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
lookup_user_threads.rb FEATURE: Add ability to watch chat threads (#28639) 2024-09-02 16:45:55 +04:00
mark_all_user_channels_read.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
mark_thread_title_prompt_seen.rb FEATURE: encourage users to set chat thread titles (#26617) 2024-04-29 17:20:01 +08:00
message_destroyer.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
publisher.rb FIX: do not increment reply count manually (#26769) 2024-04-26 12:32:06 +02:00
restore_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
search_chatable.rb DEV: Disallow default params in service steps 2024-09-19 14:47:55 +02:00
stop_message_streaming.rb FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02:00
tracking_state.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
trash_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
trash_message.rb FEATURE: Allow to bulk delete chat messages (#26586) 2024-05-22 08:57:00 -03:00
trash_messages.rb FEATURE: Allow to bulk delete chat messages (#26586) 2024-05-22 08:57:00 -03:00
unfollow_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_channel_status.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_message.rb FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02:00
update_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_thread_notification_settings.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_user_channel_last_read.rb FEATURE: implements last read message for threads (#26702) 2024-04-25 10:47:54 +02:00
update_user_thread_last_read.rb FEATURE: implements last read message for threads (#26702) 2024-04-25 10:47:54 +02:00
upsert_draft.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00