Actions
Bug #16828
closedCloned roles should have `builtin` value 0
Status:
Closed
Priority:
Low
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Pull request:
Description
Ensure that `role.builtin` for cloned roles is always 0.
This is because `role.builtin` is being assigned a boolean value whereas the PG datatype is INTEGER.
https://github.com/theforeman/foreman/blob/develop/app/controllers/roles_controller.rb#L97
The attached bugzilla is not reproducable as upstream is fixed by commit: https://github.com/theforeman/foreman/blob/12612809c5deb885b13ceaf36b6a147c21688eb5/db/migrate/20160715131352_set_role_builtin_default.rb
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3925 added
Updated by Dominic Cleal over 8 years ago
- Category set to Users, Roles and Permissions
- Translation missing: en.field_release set to 189
Updated by Swapnil Abnave over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c94fc6bd99f0abe09c031efeb67d71f25abc6895.
Updated by Swapnil Abnave about 8 years ago
- Target version changed from 1.15.6 to 1.15.1
Updated by Lukas Zapletal almost 8 years ago
- Related to Feature #18321: Provide migration to fix cloned roles added
Updated by Lukas Zapletal almost 8 years ago
Workaround (for googlers):
echo "Role.where(:builtin => nil).update_all(:builtin => 0)" | foreman-rake console
To fix all cloned roles.
Updated by Dominic Cleal almost 8 years ago
- Related to Refactor #15621: Change role builtin attribute to boolean added
Actions