discourse/plugins/chat/spec
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
..
components DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
fabricators DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
integration DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
jobs DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib FIX: Improve error reporting and failure modes for channel archiving (#19791) 2023-01-12 10:04:46 +10:00
mailers DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
models DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
queries DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
requests FIX: Improve error reporting and failure modes for channel archiving (#19791) 2023-01-12 10:04:46 +10:00
serializer DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
services DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
support DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
system FIX: Improve error reporting and failure modes for channel archiving (#19791) 2023-01-12 10:04:46 +10:00
validators
plugin_helper.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
plugin_spec.rb FIX: Channel archive N1 when serializing current user (#19820) 2023-01-11 14:39:56 +10:00