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

Allow NeTEx ServiceJourneyPatterns with stopUse=passthrough #6037

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Sep 2, 2024

Summary

As described in #6036 OTP doesn't consider pass-trough stops in ServiceJourneyPatterns. This modifies the validation slightly so that these are removed before comparing the number of links with the passing times.

Issue

Closes #6036

Unit tests

Added.

I also added some builder classes which might also become useful for other tests.

Documentation

Javadoc

@leonardehrenfried leonardehrenfried requested a review from a team as a code owner September 2, 2024 16:06
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.74%. Comparing base (8928178) to head (1551ea4).
Report is 15 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...ner/netex/validation/JourneyPatternSJMismatch.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #6037   +/-   ##
==========================================
  Coverage      69.73%   69.74%           
- Complexity     17317    17319    +2     
==========================================
  Files           1960     1960           
  Lines          74268    74273    +5     
  Branches        7603     7605    +2     
==========================================
+ Hits           51793    51799    +6     
+ Misses         19832    19831    -1     
  Partials        2643     2643           

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

@leonardehrenfried leonardehrenfried added the NeTEx This issue is related to the Netex model/import. label Sep 3, 2024
@vpaturet
Copy link
Contributor

vpaturet commented Sep 3, 2024

@leonardehrenfried
Copy link
Member Author

Similar issue as https://github.com/opentripplanner/OpenTripPlanner/pull/4863/files#r1114962376

Ah, this is the reason why it's only the validation that fails, not the import itself because these pass-through points also have forBoarding/alighting=false.

@leonardehrenfried leonardehrenfried merged commit 95415dc into opentripplanner:dev-2.x Sep 5, 2024
5 checks passed
t2gran pushed a commit that referenced this pull request Sep 5, 2024
@leonardehrenfried leonardehrenfried deleted the netex-pass-through-stop-point branch September 5, 2024 13:08
@leonardehrenfried
Copy link
Member Author

Related ticket: #3640

@t2gran t2gran added this to the 2.6 milestone Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeTEx This issue is related to the Netex model/import.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ServiceJourney discarded when JourneyPattern contains passing time with stopUse=PASSTHROUGH
4 participants