mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Gracefully handle unhandled reviewables (#31118)
Plugins like for example AI or Akismet create reviewable items. When the plugin is disabled, then we cannot properly handle those items. In that situation, we should display warnings about unhandled types. Instruct admin to reenable plugins. In addition, we should allow the admin to delete all pending reviews from disabled plugins.
This commit is contained in:
committed by
GitHub
parent
f439bf14cc
commit
5eb7d6d9c0
@@ -584,6 +584,15 @@ en:
|
||||
date_filter: "Posted between"
|
||||
in_reply_to: "in reply to"
|
||||
filtered_flagged_by: "Flagged by"
|
||||
unknown:
|
||||
title:
|
||||
one: "You have pending reviewables from disabled plugin:"
|
||||
other: "You have pending reviewables from disabled plugins:"
|
||||
instruction: "They cannot be properly displayed until you enable the relevant plugin. Please enable the plugin and refresh the page. Alternatively, you can ignore them. <a href='%{url}' target='_blank'>Learn more...</a>"
|
||||
ignore_all: "Ignore all"
|
||||
enable_plugins: "Enable plugins"
|
||||
delete_confirm: "Are you sure you want to delete all reviews created by disabled plugins?"
|
||||
ignore_success: "All reviews created by disabled plugins have been deleted."
|
||||
explain:
|
||||
why: "explain why this item ended up in the queue"
|
||||
title: "Reviewable Scoring"
|
||||
|
||||
@@ -449,6 +449,8 @@ Discourse::Application.routes.draw do
|
||||
|
||||
get "section/:section_id" => "section#show", :constraints => AdminConstraint.new
|
||||
resources :admin_notices, only: %i[destroy], constraints: AdminConstraint.new
|
||||
|
||||
delete "unknown_reviewables/destroy" => "unknown_reviewables#destroy"
|
||||
end # admin namespace
|
||||
|
||||
get "email/unsubscribe/:key" => "email#unsubscribe", :as => "email_unsubscribe"
|
||||
|
||||
Reference in New Issue
Block a user