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

Removes importer association data for backwards compatibility #15724

Merged

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Aug 3, 2017

This PR removes the dialog field association data from the fields currently imported by the main repo (which takes only expected dialog fields sans associations). We take out the information related to ResourceActions in much the same fashion here as well.

Related to:
#15608

(the export code is here:)
#15740

@d-m-u
Copy link
Contributor Author

d-m-u commented Aug 3, 2017

@miq-bot assign @gmcculloug
@miq-bot add_label enhancement

Copy link
Member

@eclarizio eclarizio left a comment

Choose a reason for hiding this comment

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

I don't think you have to actually write any new tests, but I do think you should add dialog_field_responders to the test dialog_field so that if you were to remove the one line change in dialog_field_importer.rb, the tests would fail.

@d-m-u d-m-u force-pushed the make_associations_backwards_compatible branch from 21e5228 to bb884ac Compare August 4, 2017 19:59
}
end

let(:responder) { FactoryGirl.create(:dialog_field) }
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this? We're deleting the key anyway in the import process, I don't think there's any reason to actually create a dialog field in the test if we're just throwing it away.

Copy link
Member

Choose a reason for hiding this comment

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

Let me clarify since I know it sounds like I'm contradicting myself from my previous suggestion of adding the dialog_field_responders into the test. I was basically just saying to add the key and a nonsense value to ensure that even if the importing yaml contained the key, it would be ignored.

@d-m-u d-m-u force-pushed the make_associations_backwards_compatible branch 2 times, most recently from 344e82b to 239ce78 Compare August 8, 2017 19:53
@d-m-u d-m-u changed the title [WIP] Removes importer association data for backwards compatibility Removes importer association data for backwards compatibility Aug 10, 2017
@miq-bot miq-bot removed the wip label Aug 10, 2017
@d-m-u d-m-u changed the title Removes importer association data for backwards compatibility [WIP] Removes importer association data for backwards compatibility Aug 10, 2017
@miq-bot miq-bot added the wip label Aug 10, 2017
@d-m-u d-m-u force-pushed the make_associations_backwards_compatible branch from 239ce78 to 089b4b6 Compare August 10, 2017 12:55
@d-m-u d-m-u changed the title [WIP] Removes importer association data for backwards compatibility Removes importer association data for backwards compatibility Aug 10, 2017
@miq-bot miq-bot removed the wip label Aug 10, 2017
@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2017

Checked commits d-m-u/manageiq@8d80d93~...089b4b6 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@gmcculloug gmcculloug merged commit a67f19b into ManageIQ:master Aug 15, 2017
@gmcculloug gmcculloug added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 15, 2017
@d-m-u d-m-u deleted the make_associations_backwards_compatible branch October 25, 2018 14:15
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.

4 participants