mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Database backed admin notices (#26192)
This PR introduces a basic AdminNotice model to store these notices. Admin notices are categorized by their source/type (currently only notices from problem check.) They also have a priority.
This commit is contained in:
@ -26,7 +26,9 @@ class Admin::DashboardController < Admin::StaffController
|
||||
end
|
||||
|
||||
def problems
|
||||
render_json_dump(problems: AdminDashboardData.fetch_problems(check_force_https: request.ssl?))
|
||||
ProblemCheck.realtime.run_all
|
||||
|
||||
render json: { problems: serialize_data(AdminNotice.problem.all, AdminNoticeSerializer) }
|
||||
end
|
||||
|
||||
def new_features
|
||||
|
Reference in New Issue
Block a user