-
Notifications
You must be signed in to change notification settings - Fork 832
Description
What happened:
When editing an experiment in the Chaos Studio YAML view, typing invalid syntax (e.g., incomplete lines or malformed structure) causes the entire application to crash with an "Uncaught runtime error". The user sees a white screen or error overlay and cannot recover their work.
What you expected to happen:
The editor should handle parsing errors gracefully. Instead of crashing, it should:
- Catch the YAML validation error.
- Display a helpful error message to the user.
- Disable the "Save" button until the syntax is corrected.
Where can this issue be corrected?
src/views/ExperimentYAMLBuilder/ExperimentYAMLBuilder.tsx and related YAML utility services.
How to reproduce it:
- Go to Chaos Studio.
- Select an experiment and switch to YAML mode.
- Delete a character to break the syntax (e.g., remove a character from the name of your).
- Observe the immediate application crash.
For example:
In the spec: templates: I changed the name from minikube-agent to minikube-agent-
Due to addition of one character (-) it crashes like this:
Anything else we need to know?:
I have already implemented a fix that introduces a dedicated "Error Console" to display validation issues without crashing the UI.