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

Create multiple requests for multiple service retirement #18958

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Jul 10, 2019

Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1722194

We should be creating multiple requests for when you hit retire_now for multiple services. Thus the description with multiple services on one request should never get used and can get ✂️

@d-m-u
Copy link
Contributor Author

d-m-u commented Jul 10, 2019

@miq-bot add_label bug, hammer/yes
@miq-bot assign @tinaafitz

@d-m-u d-m-u force-pushed the fixing_request_number_creation_for_multiple_services branch from 47204e8 to 7532456 Compare July 10, 2019 18:50
@miq-bot miq-bot added the wip label Jul 10, 2019
@d-m-u d-m-u force-pushed the fixing_request_number_creation_for_multiple_services branch 2 times, most recently from f129393 to c9b73d7 Compare July 11, 2019 15:01
@d-m-u d-m-u changed the title [WIP] Create multiple requests for multiple service retirement Create multiple requests for multiple service retirement Jul 11, 2019
@d-m-u
Copy link
Contributor Author

d-m-u commented Jul 11, 2019

@bdunne could you please review?

@d-m-u
Copy link
Contributor Author

d-m-u commented Jul 11, 2019

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Jul 11, 2019
@d-m-u d-m-u force-pushed the fixing_request_number_creation_for_multiple_services branch from c9b73d7 to da51988 Compare July 11, 2019 15:30
else
req_obj.source.name
end

new_settings = []
"#{request_class::TASK_DESCRIPTION} for: #{name} - #{new_settings.join(", ")}"
Copy link
Contributor Author

@d-m-u d-m-u Jul 11, 2019

Choose a reason for hiding this comment

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

There are never any new_settings for a retirement task so this is superfluous. Provisioning holdover that was left in, mea culpa.

@d-m-u d-m-u force-pushed the fixing_request_number_creation_for_multiple_services branch 2 times, most recently from 80d76df to 9890c1d Compare July 11, 2019 16:51
@d-m-u d-m-u force-pushed the fixing_request_number_creation_for_multiple_services branch from 9890c1d to 2d718e2 Compare July 11, 2019 16:55
@miq-bot
Copy link
Member

miq-bot commented Jul 11, 2019

Checked commit d-m-u@2d718e2 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
6 files checked, 0 offenses detected
Everything looks fine. ⭐

@d-m-u
Copy link
Contributor Author

d-m-u commented Jul 11, 2019

If Brandon doesn't complain about the fact that there's one commit for a couple different things going on here, this should at least partially fix https://bugzilla.redhat.com/show_bug.cgi?id=1721501

@bdunne bdunne merged commit 42a55cc into ManageIQ:master Jul 11, 2019
@bdunne bdunne added this to the Sprint 116 Ending Jul 22, 2019 milestone Jul 11, 2019
simaishi pushed a commit that referenced this pull request Jul 22, 2019
…or_multiple_services

Create multiple requests for multiple service retirement

(cherry picked from commit 42a55cc)

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

Hammer backport details:

$ git log -1
commit 022f7231ed34f1ec8202a941ee269fb6464b0074
Author: Brandon Dunne <[email protected]>
Date:   Thu Jul 11 14:47:31 2019 -0400

    Merge pull request #18958 from d-m-u/fixing_request_number_creation_for_multiple_services
    
    Create multiple requests for multiple service retirement
    
    (cherry picked from commit 42a55ccabc142e3ab9b6309e8b861f6e3cb451ae)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1723833

@d-m-u d-m-u deleted the fixing_request_number_creation_for_multiple_services branch September 26, 2019 10:36
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