discourse/spec/fabricators/topic_view_stat_fabricator.rb
Martin Brennan e58cf24fcc
FEATURE: Topic view stats report ()
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 to 527f02e99f
and d1191b7f5f. 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.
2024-07-09 15:39:10 +10:00

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