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 #20656 - Show better message for policy without tailoring file #277

Merged
merged 1 commit into from Aug 25, 2017

Conversation

xprazak2
Copy link
Contributor

No description provided.

@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • length of the first commit message line for 70f6a5c exceeds 65 characters

If you don't have a ticket number, please create an issue in Redmine.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

Copy link
Member

@ares ares left a comment

Choose a reason for hiding this comment

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

just one nit, otherwise works great

before:

{
  "error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."}
}

after:

{"error":{"message":"No Tailoring file assigned for policy with id 11"}}%    

:type => 'application/xml',
:filename => @tailoring_file.original_filename
else
render(:json => { :error => { :message => "No Tailoring file assigned for policy with id #{@policy.id}" } }, :status => 404)
Copy link
Member

Choose a reason for hiding this comment

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

since this is no longer internal server error but rather expected response, I think the text should be extracted for translations

@xprazak2
Copy link
Contributor Author

I extracted the test for translations.

@ares
Copy link
Member

ares commented Aug 22, 2017

APJ

@ares
Copy link
Member

ares commented Aug 25, 2017

Thanks @xprazak2, merging!

@ares ares merged commit 0544454 into theforeman:master Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants