mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
The "Daily engaged" KPI on the admin dashboard could show an upward trend while engagement was actually falling, because the current period was summed while the previous period it compared against was a daily average. This commit drives the average-versus-sum choice off each report's `average` flag instead of a hardcoded check, so average reports like `daily_engaged_users` average both periods while cumulative reports keep summing both. |
||
|---|---|---|
| .. | ||
| admin_dashboard_kpis.rb | ||