0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/spec/fabricators/search_log_fabricator.rb
Alan Guo Xiang Tan d01a79a0da
FEATURE: Add Search section to the redesigned admin dashboard (#40779)
This PR adds a Search section to the redesigned admin dashboard. It
shows total search volume and a no-result rate for the selected date
range with prior-period deltas, a rule-based headline summarising the
period, the top 10 trending search terms, and the top 10 content gaps
(terms whose searches end without a click), badged "No match" or "Poor
match".
2026-06-11 12:25:10 +08:00

12 lines
286 B
Ruby
Vendored

# frozen_string_literal: true
Fabricator(:search_log) do
term "ruby"
search_type SearchLog.search_types[:header]
ip_address "127.0.0.1"
end
Fabricator(:clicked_search_log, from: :search_log) do
search_result_id 1
search_result_type SearchLog.search_result_types[:topic]
end