-
Notifications
You must be signed in to change notification settings - Fork 2
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
ORV2-394: Error handling changes for all vehicle apis #146
Conversation
HTTP and Fallback Filter
Error Handling Changes for Power Unit API
Power unit types , trailer and trailer type
PowerUnit PowerUnit Type Trailer Trailer Type
# Conflicts:[Resolved] # backend/vehicles/src/power-unit-types/power-unit-types.controller.ts # backend/vehicles/src/power-unit-types/power-unit-types.service.ts # backend/vehicles/src/power-units/power-units.controller.ts # backend/vehicles/src/trailer-types/trailer-types.controller.ts # backend/vehicles/src/trailer-types/trailer-types.service.ts # backend/vehicles/src/trailers/trailers.controller.ts
# Conflicts:[Resolved] # backend/vehicles/src/power-unit-types/power-unit-types.controller.ts # backend/vehicles/src/power-unit-types/power-unit-types.service.ts # backend/vehicles/src/power-units/power-units.controller.ts # backend/vehicles/src/power-units/power-units.service.ts # backend/vehicles/src/trailer-types/trailer-types.controller.ts # backend/vehicles/src/trailer-types/trailer-types.service.ts # backend/vehicles/src/trailers/trailers.controller.ts # backend/vehicles/src/trailers/trailers.service.ts
backend/vehicles/src/power-unit-types/power-unit-types.controller.ts
Outdated
Show resolved
Hide resolved
backend/vehicles/src/power-unit-types/power-unit-types.controller.ts
Outdated
Show resolved
Hide resolved
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.
We should review the error messaging at some point, and add in some code comments at least for the classes. Otherwise, I tested and it looks to be returning the errors and correct http codes.
updating error messages removing error handling from findAll
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
After having a conversation with the dev team, there'll be more changes to the error responses here and will be part of a later PR. |
Description
The change includes common error handling code and error handling implementation for all vehicle APIs.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Further comments
Thanks for the PR!
Any successful deployments (not always required) will be available below.
Backend - Vehicles available
Frontend available
Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow