mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: N+1 query when tagging enabled and no tags in topic list query. Topic query ignored tags input when tagging is disabled.
This commit is contained in:
@ -118,6 +118,10 @@ describe TopicQuery do
|
||||
let(:tag) { Fabricate(:tag) }
|
||||
let(:other_tag) { Fabricate(:tag) }
|
||||
|
||||
before do
|
||||
SiteSetting.tagging_enabled = true
|
||||
end
|
||||
|
||||
it "returns topics with the tag when filtered to it" do
|
||||
tagged_topic1 = Fabricate(:topic, {tags: [tag]})
|
||||
tagged_topic2 = Fabricate(:topic, {tags: [other_tag]})
|
||||
|
Reference in New Issue
Block a user