-
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
Transfer IsoDatastore records to Storage and drop table #672
Conversation
2b2c157
to
93ecefe
Compare
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.
- failure is legit but trivial - just need to remove the table from that list.
- cops hash/parens is legit byt trivial
- ignore timestamp cop
db/migrate/20221107195522_move_existing_iso_datastore_records.rb
Outdated
Show resolved
Hide resolved
@nasark reminded me about the
|
db/migrate/20221107195522_move_existing_iso_datastore_records.rb
Outdated
Show resolved
Hide resolved
t.bigint :ems_id | ||
t.datetime :last_refresh_on |
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.
Was this table really just 2 columns (and id)? Seems almost pointless 😮
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.
Yes there could only be one per EMS so there wasn't even an ems_ref or name "needed" even though it would be helpful
a76f1fc
to
1bba9b1
Compare
Thanks for the feedback all, I have made the changes and would appreciate another look whenever possible. |
1bba9b1
to
c9a0762
Compare
emss.map do |ems| | ||
datastore_stub.create!(:ext_management_system => ems) | ||
end |
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.
No need for .map
if you aren't using the return
emss.map do |ems| | |
datastore_stub.create!(:ext_management_system => ems) | |
end | |
emss.each { |ems| datastore_stub.create!(:ext_management_system => ems) } |
@nasark can we add specs covering the IsoImage changes as well? |
c9a0762
to
071578d
Compare
071578d
to
e3385a5
Compare
Checked commit nasark@e3385a5 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint db/migrate/20221107195559_drop_iso_datastore.rb
|
:iso_datastore
records to:storage
tableStorage
objects with STI:type => ManageIQ::Providers::Ovirt::InfraManager::IsoDatastore
Depends on:
@miq-bot add_labels enhancement, technical debt
@miq-bot assign @agrare