mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Merge pull request #5496 from techAPJ/admin-graphs
FIX: graphs should go to zero for missing dates
This commit is contained in:
@ -177,6 +177,7 @@ RSpec.describe SearchLog, type: :model do
|
||||
|
||||
SearchLog.where(term: 'ruby', ip_address: '127.0.0.2').update_all(search_result_id: 24)
|
||||
term_click_through_details = SearchLog.term_details("ruby", :all, :click_through_only)
|
||||
expect(term_click_through_details[:period]).to eq("all")
|
||||
expect(term_click_through_details[:data][0][:y]).to eq(1)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user