Skip to content

Allow NeTEx ServiceJourneyPatterns with stopUse=passthrough#6037

Merged
leonardehrenfried merged 3 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:netex-pass-through-stop-point
Sep 5, 2024
Merged

Allow NeTEx ServiceJourneyPatterns with stopUse=passthrough#6037
leonardehrenfried merged 3 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:netex-pass-through-stop-point

Conversation

@leonardehrenfried

@leonardehrenfried leonardehrenfried commented Sep 2, 2024

Copy link
Copy Markdown
Member

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
@codecov

codecov Bot commented Sep 2, 2024

Copy link
Copy Markdown

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

vpaturet commented Sep 3, 2024

Copy link
Copy Markdown
Contributor

@leonardehrenfried

Copy link
Copy Markdown
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
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
Copy Markdown
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