mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:03:57 +08:00
e58cf24fcc
Adds a report to show the top 100 most viewed topics in a date range, combining logged in and anonymous views. Can be filtered by category. This is a followup to527f02e99f
andd1191b7f5f
. We are also going to be able to see this data in a new topic map, but this admin report helps to see an overview across the forum for a date range.
9 lines
175 B
Ruby
9 lines
175 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:topic_view_stat) do
|
|
topic { Fabricate(:topic) }
|
|
viewed_at { Time.zone.now }
|
|
anonymous_views { 1 }
|
|
logged_in_views { 1 }
|
|
end
|