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 email issue in miq_provision_quota_mixin active_provision by_owner method. #16693

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

tinaafitz
Copy link
Member

The active_provisions_by_owner method was getting a "no implicit conversion of nil into String" error for service provisioning. The error occurs when the Service request.requester.email is nil.

Content PR protects against calling the active_provisions_by_owner method without the requester email.
ManageIQ/manageiq-content#230

Changed miq_provision_quota_mixin to call the request_owner_email method to handle getting email for Services and VM provisions. Removed to_s from get_option(:owner_email) to cause an error if email is nil.

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

VM provisions. Removed to_s from get_option(:owner_email) to cause an
error if email is nil.

https://bugzilla.redhat.com/show_bug.cgi?id=1509977
@tinaafitz
Copy link
Member Author

@miq-bot add_label bug, fine/yes, gaprindashvili/yes, blocker
@miq-bot assign @gmcculloug

@miq-bot
Copy link
Member

miq-bot commented Dec 19, 2017

Checked commit tinaafitz@faa9ad4 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 👍

@tinaafitz
Copy link
Member Author

@gmcculloug Please review.

@gmcculloug gmcculloug merged commit 748ba9b into ManageIQ:master Dec 20, 2017
@gmcculloug gmcculloug added this to the Sprint 76 Ending Jan 1, 2018 milestone Dec 20, 2017
simaishi pushed a commit that referenced this pull request Jan 3, 2018
Fix email issue in miq_provision_quota_mixin active_provision by_owner method.
(cherry picked from commit 748ba9b)

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

simaishi commented Jan 3, 2018

Gaprindashvili backport details:

$ git log -1
commit c0d07f2dc102e6cb7be4b35fddbe66817c9e8ce2
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Tue Dec 19 20:38:18 2017 -0500

    Merge pull request #16693 from tinaafitz/miq_provision_email_fix
    
    Fix email issue in miq_provision_quota_mixin active_provision by_owner method.
    (cherry picked from commit 748ba9b820a5bc14e23c34c6c7edfbd56053ea1b)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1530644

simaishi pushed a commit that referenced this pull request Jan 4, 2018
Fix email issue in miq_provision_quota_mixin active_provision by_owner method.
(cherry picked from commit 748ba9b)

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

simaishi commented Jan 4, 2018

Fine backport details:

$ git log -1
commit 7ab886b409944b92e466f6de74754e6863729957
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Tue Dec 19 20:38:18 2017 -0500

    Merge pull request #16693 from tinaafitz/miq_provision_email_fix
    
    Fix email issue in miq_provision_quota_mixin active_provision by_owner method.
    (cherry picked from commit 748ba9b820a5bc14e23c34c6c7edfbd56053ea1b)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1531161

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
Fix email issue in miq_provision_quota_mixin active_provision by_owner method.
(cherry picked from commit 748ba9b)

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