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

Fixes #23699 - Remediation Support for Host Status #6167

Conversation

akshay-mendhe
Copy link
Member

No description provided.

@theforeman-bot
Copy link
Member

Issues: #23699

@akshay-mendhe
Copy link
Member Author

Sorry for two PRs but first PR automatically closed while Github was down.

@akshay-mendhe
Copy link
Member Author

Hello, @ares I am having one more doubt regarding taking this method to status.rb file. I moved this method as like to_label but is it Ok to make the method remediation_help_text as self method in build_status.rb file and should we pass any parameter to this method? as the method is now defined in both status.rb and build_status.rb file returning nil and string respectively. But now there is no object of class from build_status.rb that I can access in view, so should I make this method a class method?

@@ -72,6 +72,10 @@ def update_timestamp
def update_status
self.status = to_status
end

def remediation_help_text
return nil

Choose a reason for hiding this comment

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

Style/RedundantReturn: Redundant return detected.

@akshay-mendhe akshay-mendhe force-pushed the remediation_support_host_status branch 2 times, most recently from a474886 to 5780973 Compare October 26, 2018 06:32
@akshay-mendhe
Copy link
Member Author

akshay-mendhe commented Nov 27, 2018

Hello, @lzap You already reviewed this one #6135 , can you please take a quick review on this one?

@tbrisker
Copy link
Member

Closing in favor of GH-6692, thanks @akshay-mendhe !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants