mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 10:25:58 +08:00
387693e889
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. |
||
---|---|---|
.. | ||
discourse_dev | ||
email_controller_helper | ||
extensions | ||
onebox/templates | ||
tasks | ||
validators | ||
chat_channel_archive_service.rb | ||
chat_channel_fetcher.rb | ||
chat_channel_hashtag_data_source.rb | ||
chat_channel_membership_manager.rb | ||
chat_mailer.rb | ||
chat_message_bookmarkable.rb | ||
chat_message_creator.rb | ||
chat_message_processor.rb | ||
chat_message_rate_limiter.rb | ||
chat_message_reactor.rb | ||
chat_message_updater.rb | ||
chat_notifier.rb | ||
chat_review_queue.rb | ||
chat_seeder.rb | ||
chat_statistics.rb | ||
chat_transcript_service.rb | ||
direct_message_channel_creator.rb | ||
duplicate_message_validator.rb | ||
guardian_extensions.rb | ||
message_mover.rb | ||
post_notification_handler.rb | ||
secure_uploads_compatibility.rb | ||
slack_compatibility.rb |