discourse/plugins/chat
Loïc Guitaut 0733dda1cb DEV: Add policy objects to services
This patch introduces policy objects to chat services. It allows putting
more complex logic in a dedicated class, which will make services
thinner. It also allows providing a reason why the policy failed.

Some change has been made to the service runner too to use more easily
these new policy objects: when matching a failing policy (or any failing
step actually), the result object is now provided to the block. This
way, instead of having to access the reason why the policy failed by
doing `result["result.policy.policy_name"].reason` inside the block,
this one can be simply written like this:
```ruby
  on_failed_policy(:policy_name) { |policy| policy.reason }
```
2023-05-25 12:34:00 +02:00
..
app DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
assets DEV: Remove renderTemplate from the styleguide (#21660) 2023-05-25 11:22:36 +02:00
config Update translations (#21702) 2023-05-23 21:23:44 +02:00
db DEV: Create UserChatThreadMembership table and model (#21481) 2023-05-10 17:19:48 +02:00
lib DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
public
spec DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
test/javascripts FEATURE: Apply hashtag styles to autocomplete (#21731) 2023-05-25 09:38:12 +02:00
plugin.rb FIX: Chat NotificationLevels extension breaking in prod (#21484) 2023-05-10 18:46:06 +02:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.