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

Correctly catch & handle API errors when creating orchestration template #6116

Conversation

mzazrivec
Copy link
Contributor

  1. create an orchestration template
  2. create another orchestration template with exactly the same content

Without this fix, a modal window showing an odd looking api error would be shown.

With this fix, a nice flash message with an error is rendered.

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

@miq-bot
Copy link
Member

miq-bot commented Aug 28, 2019

Checked commit mzazrivec@bd3001d with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@martinpovolny martinpovolny self-assigned this Sep 4, 2019
@martinpovolny martinpovolny added this to the Sprint 120 Ending Sep 16, 2019 milestone Sep 4, 2019
@martinpovolny martinpovolny merged commit cf1aa2a into ManageIQ:master Sep 4, 2019
@mzazrivec mzazrivec deleted the correctly_catch_api_errors_when_creating_and_updating_ot branch September 4, 2019 11:30
simaishi pushed a commit that referenced this pull request Oct 31, 2019
…en_creating_and_updating_ot

Correctly catch & handle API errors when creating orchestration template

(cherry picked from commit cf1aa2a)

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

Ivanchuk backport details:

$ git log -1
commit c0690a67245cba98ff2822012a67bcaf0592d030
Author: Martin Povolny <[email protected]>
Date:   Wed Sep 4 13:26:18 2019 +0200

    Merge pull request #6116 from mzazrivec/correctly_catch_api_errors_when_creating_and_updating_ot
    
    Correctly catch & handle API errors when creating orchestration template
    
    (cherry picked from commit cf1aa2acd5d07547bf1a1899a5014bb5e50fec7f)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767648

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