Activity bumps cards to the top of triaged columns, too
This commit is contained in:
@@ -4,7 +4,7 @@ class Collections::ColumnsController < ApplicationController
|
||||
before_action :set_column, only: [ :show, :update, :destroy ]
|
||||
|
||||
def show
|
||||
set_page_and_extract_portion_from @column.cards.active.reverse_chronologically.with_golden_first
|
||||
set_page_and_extract_portion_from @column.cards.active.by_last_activity.with_golden_first
|
||||
fresh_when etag: [ @column, @page.records ]
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class Public::Collections::ColumnsController < ApplicationController
|
||||
before_action :set_column, only: :show
|
||||
|
||||
def show
|
||||
set_page_and_extract_portion_from @column.cards.active.reverse_chronologically.with_golden_first
|
||||
set_page_and_extract_portion_from @column.cards.active.by_last_activity.with_golden_first
|
||||
|
||||
# To enable caching at intermediate proxies during traffic spikes
|
||||
expires_in 5.seconds, public: true
|
||||
|
||||
Reference in New Issue
Block a user