Skip to content
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

revert the addition of ems_ref to container image #38

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

enoodle
Copy link

@enoodle enoodle commented Jul 9, 2017

Following the discussion in #21 we should revert the addition of ems_ref column to container images.

@enoodle
Copy link
Author

enoodle commented Jul 9, 2017

ping @Fryguy @simon3z @moolitayer

@@ -1,6 +1,5 @@
class AddStiToContainerImage < ActiveRecord::Migration[5.0]
def change
add_column :container_images, :type, :string
add_column :container_images, :ems_ref, :string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new migration @enoodle.
That way developers that already ran the migration will remove the new column

@enoodle enoodle force-pushed the revert_ems_ref_for_container_images branch from 88dbeb4 to 87949eb Compare July 10, 2017 08:03
@enoodle
Copy link
Author

enoodle commented Jul 10, 2017

@moolitayer I created a new migration like you asked. PTAL

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@miq-bot
Copy link
Member

miq-bot commented Jul 11, 2017

Checked commit enoodle@87949eb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@simon3z
Copy link
Contributor

simon3z commented Jul 11, 2017

@enoodle @moolitayer now that's in, would it hurt to just keep it instead (not using it). Just in case we'll find later that we need it?

@enoodle
Copy link
Author

enoodle commented Jul 11, 2017

@simon3z If we leave it always empty it will be ok.

@Fryguy
Copy link
Member

Fryguy commented Jul 11, 2017

If we leave it always empty it will be ok.

I'm not so sure about that. ems_ref is expected to be unique. If you don't fill it in with something, then all images will be the same reference which will likely confuse the save_inventory / graph_persistor.

@moolitayer
Copy link

I'm not so sure about that. ems_ref is expected to be unique. If you don't fill it in with something, then all images will be the same reference which will likely confuse the save_inventory / graph_persistor.

We are using it in save currently (and of course we should not)

@enoodle
Copy link
Author

enoodle commented Jul 13, 2017

So it seems like we want to merge this one to avoid problems in the future @simon3z @Fryguy

@moolitayer
Copy link

We are using it in save currently (and of course we should not)

Oh my, terrible scribal error, we are NOT using it, sorry @enoodle
What I meant to say is that we should be safe leaving it in AFAIK.

the save_inventory_container code: https://github.com/ManageIQ/manageiq/blob/8ad46ceb2e51ba4fc9a0ba9f8cf6c1c228da675e/app/models/ems_refresh/save_inventory_container.rb#L222

@simon3z
Copy link
Contributor

simon3z commented Jul 14, 2017

LGTM 👍 cc @Fryguy

@Fryguy Fryguy merged commit e9a5911 into ManageIQ:master Jul 17, 2017
@Fryguy Fryguy added this to the Sprint 65 Ending Jul 24, 2017 milestone Jul 17, 2017
@Fryguy Fryguy added the bug label Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants