Project

General

Profile

Bug #7247

Create migration to fix incorrect counts caused by #5692 and related bugs

Added by Tomer Brisker almost 4 years ago. Updated about 1 month ago.

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

Description

Various cached counters were corrupted by #5692.
Create a migration to reset all counters to their correct values.


Related issues

Related to Foreman - Bug #5692: Puppet environment counters not updatedClosed2014-05-13
Related to Foreman - Bug #7732: DB migration error: undefined method `counter_cache_column' for nil:NilClassClosed2014-09-29
Related to Foreman - Bug #11044: rake fix_cached_counters fails "undefined method `counter_cache_column' for nil:NilClass"Duplicate2015-07-07

Associated revisions

Revision 4c61ac84 (diff)
Added by Tomer Brisker almost 4 years ago

Fixes #7247 - Add migration and rake task to correct corrupted cached counters

Revision 13642da2 (diff)
Added by Tomer Brisker almost 4 years ago

Fixes #7247 - Add migration and rake task to correct corrupted cached counters

(cherry picked from commit 4c61ac8461e1f2cb5753d8b16287c8fbc9df317a)

History

#1 Updated by Tomer Brisker almost 4 years ago

  • Related to Bug #5692: Puppet environment counters not updated added

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/foreman/pull/1717 added
  • Pull request deleted ()

#3 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from 1.7.4 to 1.7.3

#4 Updated by Dominic Cleal almost 4 years ago

  • Category set to Rails
  • Legacy Backlogs Release (now unused) set to 22

#5 Updated by Anonymous almost 4 years ago

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

#6 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) changed from 22 to 21

Bumping to investigate upgrade errors some more (http://pastebin.com/ku4y2Jx7).

#7 Updated by Dominic Cleal almost 4 years ago

  • Related to Bug #7732: DB migration error: undefined method `counter_cache_column' for nil:NilClass added

#8 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) changed from 21 to 22

#9 Updated by Dominic Cleal about 3 years ago

  • Related to Bug #11044: rake fix_cached_counters fails "undefined method `counter_cache_column' for nil:NilClass" added

Also available in: Atom PDF