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

fix exception loading pickup / drop off for a leg if the stop is skipped in GTFS GraphQL API #6291

Draft
wants to merge 2 commits into
base: dev-2.x
Choose a base branch
from

Conversation

miklcct
Copy link
Contributor

@miklcct miklcct commented Nov 28, 2024

Summary

Fix exception loading pickup / drop off for a leg if the stop is skipped. It attempts to directly map the internal PickDrop name into the API but the API doesn't have a value for cancelled (which it uses null for the purpose).

Issue

Fixes #6290

Unit tests

TBD

Documentation

None, bug fix only.

Changelog

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 69.78%. Comparing base (684b841) to head (72e739f).
Report is 1 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...pentripplanner/apis/gtfs/datafetchers/LegImpl.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6291      +/-   ##
=============================================
- Coverage      69.79%   69.78%   -0.01%     
+ Complexity     17786    17784       -2     
=============================================
  Files           2017     2017              
  Lines          76042    76048       +6     
  Branches        7781     7785       +4     
=============================================
- Hits           53073    53071       -2     
- Misses         20264    20271       +7     
- Partials        2705     2706       +1     

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

@miklcct
Copy link
Contributor Author

miklcct commented Nov 28, 2024

Ok I'll leave this as a draft then and won't publish it, and wait until #5393 is merged. I just need this as an urgent fix to my deployment to tell the user that your train will now skip your stop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants