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

Fix usage of TreeBuilder.extract_node_model_and_id in OpcControler #5142

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Jan 9, 2019

fix displaying menu "Manage Tenant Quota" from #5123

params[:id] has format "tn-ID" (not "tn_ID")

method

TreeBuilder.extract_node_model_and_id(params[:id].to_s)

returns id in second element:

TreeBuilder.extract_node_model_and_id("tn-33333")
returns
[nil,"33333", "tn"]

and we had case written with '_' in specs

Links

@miq-bot add_label bug

TreeBuilder.extract_node_model_and_id(params[:id].to_s)

returns id in second element and we had typo in spec.

params[:id] has format "tn-ID"
@miq-bot
Copy link
Member

miq-bot commented Jan 9, 2019

Checked commit lpichler@16ee360 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@lpichler
Copy link
Contributor Author

lpichler commented Jan 9, 2019

@miq-bot add_label bug
@miq-bot assign @himdel

@lpichler
Copy link
Contributor Author

lpichler commented Jan 9, 2019

@miq-bot add_label hammer/yes, blocker

@himdel himdel added this to the Sprint 103 Ending Jan 21, 2019 milestone Jan 9, 2019
@himdel himdel merged commit c10ecc3 into ManageIQ:master Jan 9, 2019
@himdel
Copy link
Contributor

himdel commented Jan 9, 2019

(Backport after #5129 please.)

@lpichler lpichler deleted the fix_parsing_from_params_id branch January 14, 2019 15:47
simaishi pushed a commit that referenced this pull request Jan 14, 2019
Fix usage of TreeBuilder.extract_node_model_and_id in OpcControler

(cherry picked from commit c10ecc3)

https://bugzilla.redhat.com/show_bug.cgi?id=1468795
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 9685e83783f9354a081102960d2bc86a134bc60a
Author: Martin Hradil <[email protected]>
Date:   Wed Jan 9 15:05:12 2019 +0100

    Merge pull request #5142 from lpichler/fix_parsing_from_params_id
    
    Fix usage of TreeBuilder.extract_node_model_and_id in OpcControler
    
    (cherry picked from commit c10ecc362092c7123126104cfe695ba57fcbd825)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1468795

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