Project

General

Profile

Actions

Feature #18321

closed

Provide migration to fix cloned roles

Added by Lukas Zapletal almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Users, Roles and Permissions
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When role was cloned, it was created with incorrect builtin value causing issues. This was fixed in #16828 but no migration was provided to fix already cloned records:

Role.where(:builtin => nil).update_all(:builtin => 0)

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16828: Cloned roles should have `builtin` value 0ClosedSwapnil Abnave10/07/2016Actions
Actions #1

Updated by Lukas Zapletal almost 8 years ago

  • Related to Bug #16828: Cloned roles should have `builtin` value 0 added
Actions #2

Updated by Lukas Zapletal almost 8 years ago

Workaround:

echo "Role.where(:builtin => nil).update_all(:builtin => 0)" | foreman-rake console
Actions #3

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/4244 added
Actions #4

Updated by Lukas Zapletal almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • Translation missing: en.field_release set to 209
Actions #6

Updated by Daniel Lobato Garcia almost 8 years ago

  • Target version set to 1.11.0
Actions #7

Updated by Marek Hulán almost 8 years ago

  • Bugzilla link set to 1378544
Actions

Also available in: Atom PDF