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

Use TRIP_NOT_FOUND when Siri journey cannot be resolved #5565

Merged

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Dec 12, 2023

Summary

When working with a Siri feed in Germany, I noticed that OTP returns a confusing error code when the journey could not be resolved to a trip. This is fixed now.

It also fixes an exception when there is a Siri object that doesn't have a service delivery.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2a9afc3) 67.21% compared to head (808a0de) 67.21%.
Report is 9 commits behind head on dev-2.x.

Files Patch % Lines
...pplanner/ext/siri/SiriTimetableSnapshotSource.java 0.00% 1 Missing ⚠️
...r/ext/siri/updater/SiriETHttpTripUpdateSource.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #5565   +/-   ##
==========================================
  Coverage      67.21%   67.21%           
+ Complexity     16087    16086    -1     
==========================================
  Files           1852     1852           
  Lines          71003    70998    -5     
  Branches        7409     7408    -1     
==========================================
  Hits           47724    47724           
+ Misses         20812    20807    -5     
  Partials        2467     2467           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@t2gran
Copy link
Member

t2gran commented Dec 13, 2023

Q: To be 100% sure - this only affect the error report for updates? This is not returned on any APIs?

@t2gran t2gran added this to the 2.5 (next release) milestone Dec 13, 2023
@leonardehrenfried
Copy link
Member Author

Correct, it only shows up in the Prometheus endpoint.

@leonardehrenfried leonardehrenfried merged commit c4107c1 into opentripplanner:dev-2.x Dec 15, 2023
5 checks passed
@leonardehrenfried leonardehrenfried deleted the siri-error-code branch December 15, 2023 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants