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

Show Tenant column in catalog item's Request info tab only when relevant #5283

Merged
merged 2 commits into from
Nov 4, 2015
Merged

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Nov 4, 2015

https://bugzilla.redhat.com/show_bug.cgi?id=1275514

There was an extra column for Tenant in prov_vm_grid, that was never filled in...

The headers in there come from build_vm_grid which uses .respond_to? to determine whether there should be a Tenant field for a given set of VMs. Since #3816, MiqHashStruct's respond_to? always returns true - this fixes it to only return true if the method is a setter or the field is actually already present in the hash. - ping @bdunne

Also, this adds the missing fields for the case when the Tenant column should be there.

…the key is defined

this changes MiqHashStruct's respond_to_missing? to return false unless
the method is a setter or the key is defined.

That is, code like MiqHashStruct.new(:foo => 1).respond_to? :bar will no
longer return true.

https://bugzilla.redhat.com/show_bug.cgi?id=1275514
@bdunne
Copy link
Member

bdunne commented Nov 4, 2015

👍 LGTM

@miq-bot
Copy link
Member

miq-bot commented Nov 4, 2015

Checked commits https://github.com/himdel/manageiq/compare/b579ac39833a50025e2cf207ffdd526299b6caee~...8fc45cd8f8370f1760f800a4a4502bd507d74af6 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
3 files checked, 0 offenses detected
Everything looks good. 🍪

dclarizio pushed a commit that referenced this pull request Nov 4, 2015
Show Tenant column in catalog item's Request info tab only when relevant
@dclarizio dclarizio merged commit 62808d7 into ManageIQ:master Nov 4, 2015
@dclarizio dclarizio added this to the Sprint 32 Ending Nov 16, 2015 milestone Nov 4, 2015
@himdel himdel deleted the bz1275514 branch November 5, 2015 10:14
dclarizio pushed a commit that referenced this pull request Nov 10, 2015
Show Tenant column in catalog item's Request info tab only when relevant
simaishi pushed a commit that referenced this pull request Mar 19, 2019
…rom_VmOrTemplate_yaml_report

[Performance] Remove compliance from VmOrTemplate includes

(cherry picked from commit f39659c)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1690610
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