mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:08:53 +08:00
UX: improvements to new dashboard
- remove inactive user report and replace with posts - clean up internals so grouping by week happens on client - when switching periods old report was not destroyed leading to bugs - calculate trend based on previous interval ... not previous 30 days - show percentages for mau/dau - be more careful about utc date usage - show uniqu and click through rate on search panel - publish key of report with report so we only load the correct one - subscribe earlier in channel in case of concurrency issues
This commit is contained in:
@ -22,11 +22,17 @@ class Admin::ReportsController < Admin::AdminController
|
||||
group_id = nil
|
||||
end
|
||||
|
||||
facets = nil
|
||||
if Array === params[:facets]
|
||||
facets = params[:facets].map { |s| s.to_s.to_sym }
|
||||
end
|
||||
|
||||
report = Report.find(report_type,
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
category_id: category_id,
|
||||
group_id: group_id,
|
||||
facets: facets,
|
||||
async: params[:async])
|
||||
|
||||
raise Discourse::NotFound if report.blank?
|
||||
|
Reference in New Issue
Block a user