mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
292d3677e9
# Context This PR introduces the ability to permanently delete revisions from a post while maintaining the changes implemented by the revisions. Additional Context: /t/90301 # Functionality In the case a staff member wants to _remove the visual cue_ that a post has been edited eg. <img width="86" alt="Screenshot 2023-01-18 at 2 59 12 PM" src="https://user-images.githubusercontent.com/50783505/213293333-9c881229-ab18-4591-b39b-e3419a67907d.png"> while maintaining the changes made in the edits, they can enable the (hidden) site setting of `can_permanently_delete`. When this is enabled, after _hiding_ the revisions <img width="149" alt="Screenshot 2023-01-19 at 1 53 35 PM" src="https://user-images.githubusercontent.com/50783505/213546080-2a9e9c55-b3ef-428e-a93d-1b6ba287dfae.png"> there will be an additional button in the history modal to <kbd>Delete revisions</kbd> on a post. <img width="997" alt="Screenshot 2023-01-19 at 1 49 51 PM" src="https://user-images.githubusercontent.com/50783505/213546333-49042558-50ab-4724-9da7-08bacc68d38d.png"> Since this action is permanent, we display a confirmation dialog prior to triggering the destroy call <img width="722" alt="Screenshot 2023-01-19 at 1 55 59 PM" src="https://user-images.githubusercontent.com/50783505/213546487-96ea6e89-ac49-4892-b4b0-28996e3c867f.png"> Once confirmed the history modal will close and the post will `rebake` to display an _unedited_ post. <img width="868" alt="Screenshot 2023-01-19 at 1 56 35 PM" src="https://user-images.githubusercontent.com/50783505/213546608-d6436717-8484-4132-a1a8-b7a348d92728.png"> see that there is not a visual que for _revision have been made on this post_ for a post that **HAS** been edited. In addition to this, a user history log for `purge_post_revisions` will be added for each action completed. # Limits - Admins are rate limited to 20 posts per minute |
||
---|---|---|
.. | ||
admin | ||
users | ||
about_controller.rb | ||
application_controller.rb | ||
associated_groups_controller.rb | ||
badges_controller.rb | ||
bookmarks_controller.rb | ||
bootstrap_controller.rb | ||
categories_controller.rb | ||
clicks_controller.rb | ||
composer_controller.rb | ||
composer_messages_controller.rb | ||
csp_reports_controller.rb | ||
directory_columns_controller.rb | ||
directory_items_controller.rb | ||
do_not_disturb_controller.rb | ||
drafts_controller.rb | ||
edit_directory_columns_controller.rb | ||
email_controller.rb | ||
embed_controller.rb | ||
exceptions_controller.rb | ||
export_csv_controller.rb | ||
extra_locales_controller.rb | ||
finish_installation_controller.rb | ||
forums_controller.rb | ||
groups_controller.rb | ||
hashtags_controller.rb | ||
highlight_js_controller.rb | ||
inline_onebox_controller.rb | ||
invites_controller.rb | ||
list_controller.rb | ||
metadata_controller.rb | ||
new_topic_controller.rb | ||
notifications_controller.rb | ||
offline_controller.rb | ||
onebox_controller.rb | ||
permalinks_controller.rb | ||
post_action_users_controller.rb | ||
post_actions_controller.rb | ||
post_readers_controller.rb | ||
posts_controller.rb | ||
presence_controller.rb | ||
published_pages_controller.rb | ||
push_notification_controller.rb | ||
qunit_controller.rb | ||
reviewable_claimed_topics_controller.rb | ||
reviewables_controller.rb | ||
robots_txt_controller.rb | ||
safe_mode_controller.rb | ||
search_controller.rb | ||
session_controller.rb | ||
similar_topics_controller.rb | ||
site_controller.rb | ||
sitemap_controller.rb | ||
static_controller.rb | ||
steps_controller.rb | ||
stylesheets_controller.rb | ||
svg_sprite_controller.rb | ||
tag_groups_controller.rb | ||
tags_controller.rb | ||
theme_javascripts_controller.rb | ||
topics_controller.rb | ||
uploads_controller.rb | ||
user_actions_controller.rb | ||
user_api_keys_controller.rb | ||
user_avatars_controller.rb | ||
user_badges_controller.rb | ||
user_status_controller.rb | ||
users_controller.rb | ||
users_email_controller.rb | ||
webhooks_controller.rb | ||
wizard_controller.rb |