Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
solves #108
Verification & Testing Checklist for trip-details Endpoint:
i tested the endpoint against pugetsound server with agency id 1 and 40
[x] Verify the endpoint is reachable and responding with correct status codes (e.g., 200 OK for valid requests).
[x] Compare the response from testing against production to ensure consistency in data and structure.
[x] Validate response schema (fields, types, required properties).
currently there is only one type change against the server
in the trips field inside the references field, the directionId is integer in the development
but it is string in the server response
So I iam not sure should i change or not. i didn't want to because it would result in more refactoring across the codebase
[x] Confirm trip details are accurate for the given trip ID.
[x] Test with different trip IDs (valid, invalid, non-existent).
[x] Test edge cases (e.g., trips with missing fields).
[] Check response times and ensure performance is acceptable. (the direction calculation causes request time out, see issue #165 )
[x] Ensure proper error handling (400, 404, 500 cases).
[] Write/strengthen unit tests if coverage is missing or weak.
[x] Confirm no regressions compared to production behavior.
Notes:
in order for me to test the end point correclty, i had to use the DirectionCalculator in the
precomputation step, so that i don't wait for a long times and maybe don't even get a response when testing
when i did that, i noticed difference in the direction values compared to the server response
i didn't test the status field much, since it depends on real time data