fix(tasks): surface flux errors on pre auth check #14492
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #14449
This change comprises of a few cosmetic changes to the way the create tasks action surfaces errors. Prior to this change, unnecessary wrapping of platform errors caused the frontend to present unhelpful error messages when failures occured compiling the flux script in a preauth check.
This change ensures that platform errors don't get wrapped more than once during a create task action. It also adds a few more tests throughout to capture this behavior.
See new cypress test for an example of a missing
org:
in theto()
function call and how the necessary detailed information is now presented to the user. Prior to this all errors here were presented as a failure to authenticate.http/swagger.yml updated (if modified Go structs or API)