fix(lightspeed): add return statement to address unhandled error in /v1/feedback #3070
Conversation
Changed Packages
|
Review Summary by QodoFix unhandled error in lightspeed /v1/feedback handler
WalkthroughsDescription• Add missing return statement in /v1/feedback error handler • Prevents unhandled error fallthrough after 500 response • Add test case for upstream server error handling Diagramflowchart LR
A["POST /v1/feedback"] --> B["Upstream 500 Error"]
B --> C["Send 500 Response"]
C --> D["Add return statement"]
D --> E["Prevent Fallthrough"]
File Changes1. workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3070 +/- ##
=======================================
Coverage 57.28% 57.28%
=======================================
Files 2067 2067
Lines 63528 63529 +1
Branches 16583 16585 +2
=======================================
+ Hits 36390 36395 +5
+ Misses 26704 26700 -4
Partials 434 434
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
gabemontero
left a comment
There was a problem hiding this comment.
one question (answers might lead to an actual ask for change)
…handled error Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
b3589db to
2d573c9
Compare
|


Hey, I just made a Pull Request!
✔️ Checklist
Adds a
returnstatement to the/v1/feedbackhandler when it gets a 500 error, it was the only one missing this out of all the route handlers.Issue: https://redhat.atlassian.net/browse/RHIDP-13063