discourse/plugins/chat/app/models
Martin Brennan 387693e889
FIX: Improve error reporting and failure modes for channel archiving (#19791)
There was an issue with channel archiving, where at times the topic
creation could fail which left the archive in a bad state, as read-only
instead of archived. This commit does several things:

* Changes the ChatChannelArchiveService to validate the topic being
  created first and if it is not valid report the topic creation errors
  in the PM we send to the user
* Changes the UI message in the channel with the archive status to reflect
  that topic creation failed
* Validate the new topic when starting the archive process from the UI,
  and show the validation errors to the user straight away instead of
  creating the archive record and starting the process

This also fixes another issue in the discourse_dev config which was
failing because YAML parsing does not enable all classes by default now,
which was making the seeding rake task for chat fail.
2023-01-12 10:04:46 +10:00
..
concerns
category_channel.rb FIX: Do not error if autogenerated channel slug is blank (#19759) 2023-01-06 09:04:52 +10:00
chat_channel.rb DEV: Apply syntax_tree formatting to `plugins/*` 2023-01-07 11:11:37 +00:00
chat_channel_archive.rb FIX: Improve error reporting and failure modes for channel archiving (#19791) 2023-01-12 10:04:46 +10:00
chat_draft.rb
chat_mention.rb
chat_message.rb PERF: Add index for chat unread counts query (#19516) 2022-12-20 05:10:53 +08:00
chat_message_reaction.rb
chat_message_revision.rb FIX: Make chat editor IDs not null (#18903) 2022-11-08 09:06:13 +10:00
chat_upload.rb
chat_view.rb
chat_webhook_event.rb
deleted_chat_user.rb
direct_message.rb
direct_message_channel.rb FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
direct_message_user.rb
incoming_chat_webhook.rb
reviewable_chat_message.rb FIX: Unsilence users on chat message flag disagree. (#19198) 2022-11-28 11:11:35 -03:00
user_chat_channel_membership.rb