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

ui: Warning and better error handling for invalid-named variables and job templates #19989

Merged
merged 4 commits into from
Feb 15, 2024

Conversation

philrenaud
Copy link
Contributor

(Note: custom job templates are backed by Nomad Variables and so the variable adapter handleResponse method tackles them both)

When providing an invalid name for a variable or job template in the UI, give the user a message in realtime as they type to proactively warn of an invalid name, and if they continue to try to save regardless, transform the otherwise opaque error message (mentions an RPC error) into something more tangible.

image

@philrenaud philrenaud self-assigned this Feb 14, 2024
@philrenaud philrenaud added the backport/1.7.x backport to 1.7.x release line label Feb 14, 2024
Copy link

github-actions bot commented Feb 14, 2024

Ember Test Audit comparison

main 6bc6fc9 change
passes 1548 1549 +1
failures 0 0 0
flaky 0 0 0
duration 11m 04s 617ms 11m 09s 782ms +05s 165ms

Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

Yes this looks like javascript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.7.x backport to 1.7.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants