DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

feat(ui): Indicate preview errors #54

Closed flippingbits closed 1 year ago

flippingbits commented 1 year ago

When previewing a pipeline in the UI fails, let the user know and display an error message.

ChrisRousey commented 1 year ago

@flippingbits What type of errors should this be catching? I tested a pipeline, which has a stream-in only containing invalid JSON Objects '{"name":"John", "age":30, "car":null}'. This throws an exception, but the frontend gets stuck in Loading sample records... state

flippingbits commented 1 year ago

This catches errors that happen when previewing a pipeline, for instance, because the request to the python runner has not been successful.

You can test it by setting the number of replicas of the python runner pool to 1 and performing multiple preview requests, e.g., by switching between different steps, within a few seconds.

Good catch, I will add error reporting for your case as well! 🤝

flippingbits commented 1 year ago

@ChrisRousey May I ask you to test your case again?

flippingbits commented 1 year ago

Thanks a lot for the help and feedback :)

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication