-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix(anomaly detection): surface validation error to user on trigger create/update #76643
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test?
@nhsiehgit there should already be a test but I don't know where it is, so I'm waiting for it to fail (lol). If nothing fails, then I'll write new tests. |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #76643 +/- ##
===========================================
+ Coverage 57.86% 78.15% +20.29%
===========================================
Files 6681 6910 +229
Lines 294458 307236 +12778
Branches 50667 50372 -295
===========================================
+ Hits 170393 240127 +69734
+ Misses 119386 60773 -58613
- Partials 4679 6336 +1657 |
…reate/update (#76643) Missed a spot. When creating/updating triggers, catch form validation errors and surface them as serializer validation errors.
Missed a spot. When creating/updating triggers, catch form validation errors and surface them as serializer validation errors.