No more tracking commenting as an activity for sorting

We are doing away with all the automated activity scoring, but for now
lets just get rid of it for comments.
This commit is contained in:
David Heinemeier Hansson
2025-04-12 10:50:25 +02:00
parent 81f431d946
commit fb733b9a60
12 changed files with 15 additions and 106 deletions
-14
View File
@@ -11,20 +11,6 @@ class CommentTest < ActiveSupport::TestCase
assert_includes Comment.search("something rustic"), message.comment
end
test "updating card counter" do
assert_difference -> { cards(:logo).comments_count } do
assert_changes -> { cards(:logo).activity_score } do
cards(:logo).capture Comment.new(body: "I'd prefer something more rustic")
end
end
assert_difference -> { cards(:logo).comments_count }, -1 do
assert_changes -> { cards(:logo).activity_score } do
cards(:logo).messages.comments.last.destroy
end
end
end
test "first_by_author_on_card?" do
assert_not Comment.new.first_by_author_on_card?