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 #37447 - Add rerun job error #894

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

kmalyjur
Copy link
Contributor

@kmalyjur kmalyjur commented May 14, 2024

Added a meaningful error message when trying to rerun a job with a nonexistent job template.

image

I think I may have overcomplicated it a bit - it was easy to display a "404" message, but I wanted the more concrete one.

TODO: fix the tests accordingly

Comment on lines 89 to 93
<Alert
ouiaId="job-wizard-alert-error"
variant="danger"
title={sprintf(errorMessage)}
/>
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to have some red empty state like here: https://v4-archive.patternfly.org/v4/components/empty-state/design-guidelines#back-end-failure
With a button to create a job

@adamruzicka
Copy link
Contributor

@kmalyjur ping

Copy link
Member

@MariaAga MariaAga left a comment

Choose a reason for hiding this comment

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

LGTM!

@adamruzicka adamruzicka merged commit f32a8bb into theforeman:master Aug 19, 2024
24 checks passed
@adamruzicka
Copy link
Contributor

Thank you @kmalyjur & @MariaAga !

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