Skip to content

Commit 82c9b01

Browse files
authored
Merge pull request #414 from basecamp/drop-activity-score
Drop activity scoring
2 parents c65639a + 7c76bdd commit 82c9b01

File tree

9 files changed

+49
-221
lines changed

9 files changed

+49
-221
lines changed

app/javascript/controllers/card_size_controller.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/models/card.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Card < ApplicationRecord
22
include Assignable, Colored, DraftCommenting, Engageable, Eventable, Golden,
3-
Messages, Notifiable, Pinnable, Closeable, Scorable, Searchable, Staged,
3+
Messages, Notifiable, Pinnable, Closeable, Searchable, Staged,
44
Statuses, Taggable, Watchable
55

66
belongs_to :collection, touch: true
@@ -21,12 +21,11 @@ class Card < ApplicationRecord
2121

2222
scope :indexed_by, ->(index) do
2323
case index
24-
when "most_active" then ordered_by_activity
25-
when "newest" then reverse_chronologically
26-
when "oldest" then chronologically
27-
when "latest" then latest
28-
when "stalled" then ordered_by_staleness
29-
when "closed" then closed
24+
when "newest" then reverse_chronologically
25+
when "oldest" then chronologically
26+
when "latest" then latest
27+
when "stalled" then chronologically
28+
when "closed" then closed
3029
end
3130
end
3231

app/models/card/scorable.rb

Lines changed: 0 additions & 64 deletions
This file was deleted.

app/views/cards/index/engagement/_doing.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="doing-cards" class="cards cards--doing" style="view-transition-name: cards-container;" data-controller="card-size" data-action="turbo:morph@window->card-size#resize">
1+
<section id="doing-cards" class="cards cards--doing" style="view-transition-name: cards-container;">
22
<% if workflow = filter.single_workflow %>
33
<%= render "cards/index/workflow_filter", workflow: workflow, filter: filter %>
44
<% else %>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class RemoveActivityFromCards < ActiveRecord::Migration[8.1]
2+
def change
3+
remove_index :cards, :activity_score_order
4+
remove_column :cards, :activity_score_order
5+
remove_column :cards, :activity_score_at
6+
remove_column :cards, :activity_score
7+
end
8+
end

db/schema.rb

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)