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 1 commit 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.77%. Comparing base (211aafb) to head (40a1980).
Report is 36 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.75%   69.77%   +0.02%     
- Complexity     17747    17779      +32     
=============================================
  Files           2010     2017       +7     
  Lines          75948    76046      +98     
  Branches        7784     7785       +1     
=============================================
+ Hits           52979    53064      +85     
- Misses         20260    20277      +17     
+ Partials        2709     2705       -4     

☔ 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