DEV: Remove experimental_topics_filter setting (#29902)

This commit is contained in:
Penar Musaraj
2024-11-25 10:49:40 -05:00
committed by GitHub
parent 433543a516
commit e6fdfcdcd2
4 changed files with 12 additions and 34 deletions

View File

@ -1321,8 +1321,6 @@ RSpec.describe ListController do
fab!(:private_message_topic)
fab!(:topic_in_private_category) { Fabricate(:topic, category: private_category) }
before { SiteSetting.experimental_topics_filter = true }
it "should not return topics that the user is not allowed to view" do
sign_in(user)
@ -1345,16 +1343,6 @@ RSpec.describe ListController do
).to contain_exactly(topic.id)
end
it "should respond with 404 response code when `experimental_topics_filter` site setting has not been enabled" do
SiteSetting.experimental_topics_filter = false
sign_in(user)
get "/filter.json"
expect(response.status).to eq(404)
end
it "returns category definition topics if `show_category_definitions_in_topic_lists` site setting is enabled" do
category_topic = Fabricate(:topic, category: category)
category.update!(topic: category_topic)