Revert "FEATURE: Include participants in PN search data (#16855)" (#16904)

This reverts commit 71c74a262d.
This commit is contained in:
Penar Musaraj
2022-05-25 01:08:36 -04:00
committed by GitHub
parent 0b8177de54
commit ebdfc536dd
2 changed files with 4 additions and 22 deletions

View File

@@ -291,22 +291,6 @@ describe SearchIndexer do
words = post_search_data.search_data.scan(/'([^']*)'/).map { |match| match[0] }
expect(words).to contain_exactly('best', 'beig', 'obj', 'http', 'titl', 'long', 'enou', 'unca')
end
context 'private messages' do
fab!(:user1) { Fabricate(:user, name: 'bloop', username: 'bloopdroop') }
fab!(:user2) { Fabricate(:user, name: 'two', username: 'twotone') }
let!(:pm_topic) { Fabricate(:private_message_topic,
topic_allowed_users: [
Fabricate.build(:topic_allowed_user, user: user1),
Fabricate.build(:topic_allowed_user, user: user2)
]) }
let(:pm_post) { Fabricate(:post, topic: pm_topic) }
it 'includes participating users in a private message' do
search_data = pm_post.post_search_data.search_data
expect(search_data).to include("bloop", "bloopdroop", "two", "twoton")
end
end
end
describe '.queue_post_reindex' do