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

Generate retire requests from the base class name #19398

Merged

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Oct 15, 2019

ServiceAnsiblePlaybook.demodulize + "RetireRequest" => bad cause we try and constantize that n there is no SAPRR; we should be using only the base class name for make_retire_request

Also, it's passing specs and got BZ opener approval here: https://bugzilla.redhat.com/show_bug.cgi?id=1731559#c6

Depends on #19064
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1731559

@miq-bot add_label bug, hammer/yes, ivanchuk/yes
@miq-bot add_reviewer @tinaafitz
@miq-bot add_reviewer @lfu

@d-m-u
Copy link
Contributor Author

d-m-u commented Oct 15, 2019

@miq-bot add_label retirement
you know it's bad when it has its own label 😆

@d-m-u
Copy link
Contributor Author

d-m-u commented Oct 15, 2019

@bdunne could I please ask you to review?

@d-m-u d-m-u force-pushed the fixing_retire_request_class_name_constantize branch from 256c5cd to 9a032c4 Compare October 15, 2019 18:32
Copy link
Member

@tinaafitz tinaafitz left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @d-m-u for resolving this so quickly. :-)

@miq-bot
Copy link
Member

miq-bot commented Oct 15, 2019

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

@bdunne bdunne merged commit b7c9523 into ManageIQ:master Oct 15, 2019
@bdunne bdunne added this to the Sprint 123 Ending Oct 28, 2019 milestone Oct 15, 2019
@bdunne bdunne self-assigned this Oct 15, 2019
@d-m-u d-m-u deleted the fixing_retire_request_class_name_constantize branch October 15, 2019 21:03
simaishi pushed a commit that referenced this pull request Oct 21, 2019
…_constantize

Generate retire requests from the base class name

(cherry picked from commit b7c9523)

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

Hammer backport details:

$ git log -1
commit 97c8ac39f4a650d268dbd541c4a99ca20a7234cf
Author: Brandon Dunne <bdunne@redhat.com>
Date:   Tue Oct 15 16:56:53 2019 -0400

    Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize
    
    Generate retire requests from the base class name
    
    (cherry picked from commit b7c9523e41be7406c2bde8554424d5caf0017ca7)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1762428

@simaishi
Copy link
Contributor

simaishi commented Oct 21, 2019

Reverted the hammer backport:

commit 497912ef441ece34ed65b7d69789026e0a6a349e
Author: Satoe Imaishi <simaishi@redhat.com>
Date:   Mon Oct 21 13:45:44 2019 -0400

    Revert "Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize"
    
    This reverts commit 97c8ac39f4a650d268dbd541c4a99ca20a7234cf.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1762428

due to Travis error:

     NameError:
       uninitialized constant VmOrTemplateRetireRequest

@d-m-u
Copy link
Contributor Author

d-m-u commented Oct 21, 2019

Because it depended on #19064 and the linked content PR ManageIQ/manageiq-content#552, and ManageIQ/manageiq-api#662, all of which aren't backported though they're all marked hammer/yes. I can't do anything here.

@simaishi
Copy link
Contributor

You did what you needed to do (mentioning dependencies), so it's all set now 😄

simaishi pushed a commit that referenced this pull request Dec 17, 2019
…_constantize

Generate retire requests from the base class name

(cherry picked from commit b7c9523)

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

Ivanchuk backport details:

$ git log -1
commit 79e64b756e284f49eb84ec99cd5c65e65212d7ab
Author: Brandon Dunne <bdunne@redhat.com>
Date:   Tue Oct 15 16:56:53 2019 -0400

    Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize

    Generate retire requests from the base class name

    (cherry picked from commit b7c9523e41be7406c2bde8554424d5caf0017ca7)

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

simaishi pushed a commit that referenced this pull request Dec 19, 2019
…_constantize

Generate retire requests from the base class name

(cherry picked from commit b7c9523)

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

Hammer backport details:

$ git log -1
commit 19828a9617bbe2f6c8b1ba03690e85179dd2f71b
Author: Brandon Dunne <bdunne@redhat.com>
Date:   Tue Oct 15 16:56:53 2019 -0400

    Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize

    Generate retire requests from the base class name

    (cherry picked from commit b7c9523e41be7406c2bde8554424d5caf0017ca7)

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

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