Don't track triage events when postponing cards

This commit is contained in:
Jorge Manrubia
2025-10-30 07:52:26 +01:00
parent a8fc78fa90
commit 0af3e76a6a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ module Card::Postponable
def postpone(user: Current.user, event_name: :postponed)
transaction do
send_back_to_triage
send_back_to_triage(skip_event: true)
reopen
activity_spike&.destroy
create_not_now!(user: user) unless postponed?
+2 -2
View File
@@ -26,11 +26,11 @@ module Card::Triageable
end
end
def send_back_to_triage
def send_back_to_triage(skip_event: false)
transaction do
resume
update! column: nil
track_event "sent_back_to_triage"
track_event "sent_back_to_triage" unless skip_event
end
end
end