Skip to content

Create TripOnServiceDate for new siri realtime servicejourneys#5542

Merged
habrahamsson-skanetrafiken merged 3 commits into
opentripplanner:dev-2.xfrom
Skanetrafiken:fix-added-trip-on-service-date
Dec 13, 2023
Merged

Create TripOnServiceDate for new siri realtime servicejourneys#5542
habrahamsson-skanetrafiken merged 3 commits into
opentripplanner:dev-2.xfrom
Skanetrafiken:fix-added-trip-on-service-date

Conversation

@habrahamsson-skanetrafiken

@habrahamsson-skanetrafiken habrahamsson-skanetrafiken commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

Summary

When adding a replacement journey in SIRI updater, we currently don't add a TripOnServiceDate so querying for DatedServiceJourney in transmodel graphql api will give null.

It looks like this issue was caused by #5140.

Previously there was code to add the TripOnServiceDate in the TimetableSnapshot but this is unused since #5140 so I remove that code as well in order to not have a lot of dead code lying around.

Issue

Closes #5540

Unit tests

I added the exected behaviour in a unit test.

@habrahamsson-skanetrafiken habrahamsson-skanetrafiken requested a review from a team as a code owner November 28, 2023 15:16
@codecov

codecov Bot commented Nov 28, 2023

Copy link
Copy Markdown

Codecov Report

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

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

Files Patch % Lines
...org/opentripplanner/ext/siri/AddedTripBuilder.java 50.00% 15 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5542      +/-   ##
=============================================
+ Coverage      67.21%   67.23%   +0.02%     
+ Complexity     16087    16082       -5     
=============================================
  Files           1852     1852              
  Lines          71003    70970      -33     
  Branches        7409     7399      -10     
=============================================
- Hits           47724    47720       -4     
+ Misses         20812    20782      -30     
- Partials        2467     2468       +1     

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

@t2gran t2gran added this to the 2.5 (next release) milestone Nov 30, 2023
@t2gran t2gran added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Nov 30, 2023
Bartosz-Kruba
Bartosz-Kruba previously approved these changes Dec 7, 2023
@leonardehrenfried

Copy link
Copy Markdown
Member

Can you resolve the conflicts?

@habrahamsson-skanetrafiken habrahamsson-skanetrafiken merged commit cece65f into opentripplanner:dev-2.x Dec 13, 2023
t2gran pushed a commit that referenced this pull request Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting DatedServiceJourney for replacement departures gives null

6 participants