Skip to content
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

Merged
merged 15 commits into from
Jan 20, 2023
Merged

Conversation

gchauhan-aot
Copy link
Collaborator

@gchauhan-aot gchauhan-aot commented Jan 19, 2023

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.

  • New feature (non-breaking change which adds functionality)

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

  • Test A: Unit tested the APIs using postman.
  • Test B

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

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

 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
@gchauhan-aot gchauhan-aot temporarily deployed to dev January 19, 2023 22:01 — with GitHub Actions Inactive
@gchauhan-aot gchauhan-aot temporarily deployed to dev January 19, 2023 22:01 — with GitHub Actions Inactive
@gchauhan-aot gchauhan-aot temporarily deployed to dev January 19, 2023 22:01 — with GitHub Actions Inactive
Copy link
Collaborator

@john-fletcher-aot john-fletcher-aot left a 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
@sonarcloud
Copy link

sonarcloud bot commented Jan 20, 2023

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 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@gchauhan-aot gchauhan-aot temporarily deployed to dev January 20, 2023 20:16 — with GitHub Actions Inactive
@gchauhan-aot gchauhan-aot temporarily deployed to dev January 20, 2023 20:16 — with GitHub Actions Inactive
@gchauhan-aot gchauhan-aot temporarily deployed to dev January 20, 2023 20:16 — with GitHub Actions Inactive
@krishnan-aot
Copy link
Collaborator

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.

@krishnan-aot krishnan-aot merged commit 44c04e3 into main Jan 20, 2023
@krishnan-aot krishnan-aot deleted the ORV2-394 branch January 20, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants