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

Introducing find by and find or build by methods #13926

Merged

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Feb 15, 2017

Blocked:

Introducing find_by and find_or_build_by methods

Only 2 last commits are relevant, rest is dependency

@miq-bot miq-bot added the wip label Feb 15, 2017
@Ladas
Copy link
Contributor Author

Ladas commented Feb 16, 2017

@miq-bot assign @agrare

def add_remaining_inventory_collections(defaults, inventory_collections_data = {})
defaults.each do |default|
# Get names of all inventory collections defined in passed classes with Defaults
all_inventory_collections = default.methods - ::ManagerRefresh::InventoryCollectionDefault.methods
Copy link
Member

@kbrock kbrock Feb 16, 2017

Choose a reason for hiding this comment

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

will methods(false) or public_methods(false) work for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, will try that, thank you :-)

@kbrock kbrock changed the title [WIP](Depends on #13923) Introducing find by and find or build by methods [WIP] Introducing find by and find or build by methods Feb 16, 2017
@miq-bot
Copy link
Member

miq-bot commented Feb 20, 2017

This pull request is not mergeable. Please rebase and repush.

find_by and find_or_build_by methods for ICs having manager_ref
consisting from multiple attributes
Ansible using find_or_build_by for Playbooks
@Ladas Ladas force-pushed the introducing_find_by_and_find_or_build_by_methods branch from 092f504 to b58534f Compare February 21, 2017 08:59
@Ladas Ladas changed the title [WIP] Introducing find by and find or build by methods Introducing find by and find or build by methods Feb 21, 2017
@Ladas
Copy link
Contributor Author

Ladas commented Feb 21, 2017

@miq-bot remove_label wip

@miq-bot
Copy link
Member

miq-bot commented Feb 21, 2017

Checked commits Ladas/manageiq@869a61d~...b58534f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks good. 🏆

@agrare
Copy link
Member

agrare commented Feb 21, 2017

LGTM

@agrare agrare merged commit eff9b65 into ManageIQ:master Feb 21, 2017
@agrare agrare added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 21, 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.

5 participants