Project

General

Profile

Actions

Bug #12241

closed

Counter cache update didn't pick up changes from after_commit callback

Added by Tomer Brisker over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

`after_commit` callback doesn't have a `changes` hash, instead need to use `previous_changes` hash.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #10133: Massive db deadlocks in postgres from hosts_counter updates with counter_cache_fix.rbClosedTomer Brisker04/14/2015Actions
Actions #1

Updated by Tomer Brisker over 8 years ago

  • Related to Bug #10133: Massive db deadlocks in postgres from hosts_counter updates with counter_cache_fix.rb added
Actions #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2839 added
  • Pull request deleted ()
Actions #3

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 104
Actions #4

Updated by Dominic Cleal over 8 years ago

  • Subject changed from fix for #10133 was incorrect to Counter cache update didn't pick up changes from after_commit callback
  • Category changed from Dashboard to Rails
Actions #5

Updated by Anonymous over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF