Actions
Bug #7246
closedRemove counter workaround for #5692 on upgrade to rails 4.x
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Updated by Tomer Brisker over 10 years ago
- Related to Bug #5692: Puppet environment counters not updated added
Updated by Tomer Brisker over 10 years ago
- Blocks Tracker #3157: Rails 4.1 upgrade tasks added
Updated by Ohad Levy about 10 years ago
- Translation missing: en.field_release set to 21
Updated by Ohad Levy about 10 years ago
- Translation missing: en.field_release deleted (
21)
Updated by Tom Caspy almost 10 years ago
this can't be removed if we want associations to be updated by the association_id setter.
we get this:
1) Failure:
DomainTest#test_0010_should update hosts_count on domain_id change [/Volumes/proj/foreman/test/unit/domain_test.rb:87]:
"domain.hosts_count" didn't change by 1.
Expected: 1
Actual: 0
when removing this patch.
Updated by Dominic Cleal about 9 years ago
- Subject changed from Remove workaround for #5692 on upgrade to rails 4.x to Remove counter workaround for #5692 on upgrade to rails 4.x
- Category set to Rails
Updated by Dominic Cleal about 9 years ago
- Blocks deleted (Tracker #3157: Rails 4.1 upgrade tasks)
Updated by Dominic Cleal about 9 years ago
- Blocked by Feature #7230: Upgrade Ruby on Rails to 4.1 added
Updated by Dominic Cleal about 9 years ago
- Blocks Tracker #3157: Rails 4.1 upgrade tasks added
Updated by Dominic Cleal about 9 years ago
- Related to Refactor #12485: Consider replacing Rails counter_cache with counter_culture gem added
Updated by Dominic Cleal about 9 years ago
- Blocks deleted (Tracker #3157: Rails 4.1 upgrade tasks)
Updated by Dominic Cleal about 9 years ago
- Related to Tracker #3157: Rails 4.1 upgrade tasks added
Updated by Dominic Cleal almost 9 years ago
An issue remains in Rails 4 (4.1.14.1, 4.2.5 and master at the time of writing) where counters are double-counted on object reassignment, preventing this workaround from being removed still. Filed as https://github.com/rails/rails/issues/23265.
Unfortunately this means I think that counters are being updated three times on reassignment - twice by Rails and once by our workaround.
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
Updated by Dominic Cleal over 8 years ago
- Status changed from New to Rejected
Cached counters were removed entirely in #12193, so this ticket is no longer applicable.
Actions