[deploy] Hotfix: Disable Article Sinking (#9237)

This commit is contained in:
Molly Struve 2020-07-09 17:19:06 -05:00 committed by GitHub
parent 7fb7b179d9
commit 0a51540a4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,14 @@
module Moderator
class SinkArticles
def self.call(user_id)
# rubocop:disable Lint/UnreachableCode
# HOTFIX
# @mstruve: This worker is broken and needs to be fixed. It can inadvertantly
# bump up scores for a user's articles if they have a lot of good reactions
# this leads to clumps of articles from the same user in feeds
return
Moderator::SinkArticlesWorker.perform_async(user_id)
# rubocop:enable Lint/UnreachableCode
end
end
end

View file

@ -9,7 +9,7 @@ RSpec.describe Moderator::SinkArticles, type: :service do
end
let(:vomit_reaction) { create(:reaction, reactable: spam_user, user: moderator, category: "vomit") }
describe "#call" do
xdescribe "#call" do
it "lowers all of a user's articles' scores by 25 each if not confirmed" do
vomit_reaction
expect do