mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Start detecting install problems and report them on the admin dashboard. This commit adds check for Rails.env
This commit is contained in:
@ -2,12 +2,7 @@
|
||||
class Admin::DashboardController < Admin::AdminController
|
||||
|
||||
def index
|
||||
render_json_dump({
|
||||
reports: ['visits', 'signups', 'topics', 'posts', 'flags', 'users_by_trust_level', 'likes', 'emails'].map { |type| Report.find(type) },
|
||||
total_users: User.count
|
||||
}.merge(
|
||||
SiteSetting.version_checks? ? {version_check: DiscourseUpdates.check_version} : {}
|
||||
))
|
||||
render_json_dump(AdminDashboardData.fetch)
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user