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

Add requester to raise_retirement_event log message #17898

Merged

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Aug 23, 2018

It would be helpful in raise_retirement_event if we also printed the requester.

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

@d-m-u
Copy link
Contributor Author

d-m-u commented Aug 23, 2018

@miq-bot assign @gmcculloug
@miq-bot add_reviewer @tinaafitz

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.

@d-m-u Looks good.

@d-m-u
Copy link
Contributor Author

d-m-u commented Aug 23, 2018

I don't even know what to label this.
@miq-bot add_label enhancement

@tinaafitz
Copy link
Member

@mkanoor Logging the requester would help tremendously in debugging retirement issues. Please review.

@miq-bot
Copy link
Member

miq-bot commented Aug 23, 2018

Checked commit d-m-u@04b8cc6 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@@ -203,7 +203,7 @@ def retired_event_name
def raise_retirement_event(event_name, requester = nil)
requester ||= User.current_user.try(:userid)
q_options = retire_queue_options
$log.info("Raising Retirement Event for [#{name}] with queue options: #{q_options.inspect}")
$log.info("Requester [#{requester}] raising Retirement Event for [#{name}] with queue options: #{q_options.inspect}")
Copy link
Member

Choose a reason for hiding this comment

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

Just wanted to check since requester could potentially be nil would you want to treat that condition differently or are you ok logging Requester [] raising Retirement Event for...

Copy link
Member

Choose a reason for hiding this comment

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

@gmcculloug I'm okay with logging nil for the requester

@gmcculloug gmcculloug merged commit 2c4745b into ManageIQ:master Aug 23, 2018
@gmcculloug gmcculloug added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 23, 2018
@d-m-u
Copy link
Contributor Author

d-m-u commented Sep 4, 2018

@tinaafitz can we backport this to G? Do ... would we want to, I mean?

@tinaafitz
Copy link
Member

@d-m-u Yes, I would like to backport this change to the G release.

@d-m-u d-m-u deleted the adding_requester_name_to_log_message branch September 6, 2018 14:53
@d-m-u
Copy link
Contributor Author

d-m-u commented Sep 6, 2018

backport is here: #17944

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