This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/spec/lib
Roman Rizzi b7c24e1d69
REFACTOR: Separate post-send warnings logic.
After #19666, we send notifications asynchronously. However, this has dramatically delayed the different post-send warnings we send.

This change moves all the post-send warnings logic from `Chat::ChatNotifier` into a separate service, allowing us to run this part synchronously, displaying the warnings almost instantly without doing all the heavy lifting for sending notifications. It also simplifies the notifier, making another refactor we planned simpler.

Finally, this removes the need to run jobs on the system specs that test the post-warning logic, hopefully making them faster.
2023-02-15 08:37:47 -03:00
..
chat_channel_archive_service_spec.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
chat_channel_fetcher_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_channel_hashtag_data_source_spec.rb FEATURE: Sort hashtags starting with term higher priority (#19463) 2022-12-15 13:01:44 +10:00
chat_channel_membership_manager_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_bookmarkable_spec.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
chat_message_processor_spec.rb FIX: Add missing user_id args for ChatMessage.cook (#19508) 2022-12-19 11:05:37 +10:00
chat_message_reactor_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_notifier_spec.rb REFACTOR: Separate post-send warnings logic. 2023-02-15 08:37:47 -03:00
chat_review_queue_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
chat_statistics_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_transcript_service_spec.rb DEV: Use UploadReference instead of ChatUpload in chat (#19947) 2023-01-24 13:28:21 +10:00
direct_message_channel_creator_spec.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
duplicate_message_validator_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
endpoint_spec.rb DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
guardian_extensions_spec.rb DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
message_mention_warnings_spec.rb REFACTOR: Separate post-send warnings logic. 2023-02-15 08:37:47 -03:00
message_mover_spec.rb FEATURE: Automatically create chat threads in background (#20206) 2023-02-08 10:22:07 +10:00
post_notification_handler_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
slack_compatibility_spec.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
steps_inspector_spec.rb DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00