-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone owner_id to group_id in miq_sets table for dashboards assigned to group #432
Clone owner_id to group_id in miq_sets table for dashboards assigned to group #432
Conversation
6fbcf44
to
9728104
Compare
…d to group This PR should go together with ManageIQ/manageiq#19491 Fixes issue ManageIQ/manageiq#18924
9728104
to
d356240
Compare
db/migrate/20191112132759_copy_owner_id_to_group_id_for_dashboards.rb
Outdated
Show resolved
Hide resolved
db/migrate/20191112132759_copy_owner_id_to_group_id_for_dashboards.rb
Outdated
Show resolved
Hide resolved
spec/migrations/20191112132759_copy_owner_id_to_group_id_for_dashboards_spec.rb
Show resolved
Hide resolved
spec/migrations/20191112132759_copy_owner_id_to_group_id_for_dashboards_spec.rb
Outdated
Show resolved
Hide resolved
113b89d
to
c7bc1b4
Compare
c7bc1b4
to
927a13d
Compare
describe CopyOwnerIdToGroupIdForDashboards do | ||
let(:miq_set) { migration_stub(:MiqSet) } | ||
let(:name) { "Hello Dashboard" } | ||
let(:group_id) { 1 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode the group_id as this is invalid in a multi-region mode. I believe there are specs where we need to create ids from an appropriate region, so search the specs for that...something around ActiveRecord::IdRegions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As agreed, we'll keep this as is, as it seems we don't have an existing mechanism for generating regionalized ids.
ae1c430
to
ec0715b
Compare
Checked commits yrudman/manageiq-schema@d356240~...ec0715b with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 db/migrate/20191112132759_copy_owner_id_to_group_id_for_dashboards.rb
|
ec0715b
to
927a13d
Compare
This PR should go together with ManageIQ/manageiq#19491
Fixes issue ManageIQ/manageiq#18924