Bug #7247

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

Added by Tomer Brisker over 3 years ago. Updated about 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Tomer Brisker
Category:Rails
Target version:Sprint 29
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/1717
Story points-
Velocity based estimate-
Release1.6.1Release relationshipAuto

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 updated Closed 05/13/2014
Related to Foreman - Bug #7732: DB migration error: undefined method `counter_cache_colum... Closed 09/29/2014
Related to Foreman - Bug #11044: rake fix_cached_counters fails "undefined method `counter... Duplicate 07/07/2015

Associated revisions

Revision 4c61ac84
Added by Tomer Brisker about 3 years ago

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

Revision 13642da2
Added by Tomer Brisker about 3 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 over 3 years ago

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

#2 Updated by The Foreman Bot about 3 years ago

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

#3 Updated by Dmitri Dolguikh about 3 years ago

  • Target version changed from Sprint 28 to Sprint 29

#4 Updated by Dominic Cleal about 3 years ago

  • Category set to Rails
  • Release set to 1.6.1

#5 Updated by Anonymous about 3 years ago

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

#6 Updated by Dominic Cleal about 3 years ago

  • Release changed from 1.6.1 to 1.7.0

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

#7 Updated by Dominic Cleal about 3 years ago

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

#8 Updated by Dominic Cleal about 3 years ago

  • Release changed from 1.7.0 to 1.6.1

#9 Updated by Dominic Cleal over 2 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