Skip to content

Add fallback for missing operator name - #4588

Merged
vpaturet merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_add_fallback_for_missing_operator_name
Nov 9, 2022
Merged

vpaturet merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_add_fallback_for_missing_operator_name

Conversation

@vpaturet

@vpaturet vpaturet commented Nov 9, 2022 •

Copy link
Copy Markdown
Contributor

Summary

This PR fixes #4587: when the name of an Operator is missing in a NeTEx dataset, the graph builder fails.
Since this field is not critical to journey planning, this should not prevent the graph building from completing.
This PR:

  • adds an issue in the issue store when an operator name is missing.
  • uses the NeTEx id of the operator as a substitute for the missing operator name.

Issue

fixes #4587

Unit tests

Added unit test.

Documentation

No

@vpaturet vpaturet added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Nov 9, 2022
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Base: 60.48% // Head: 60.45% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (290252b) compared to base (e011673).
Patch coverage: 39.20% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #4588      +/-   ##
=============================================
- Coverage      60.48%   60.45%   -0.03%     
- Complexity     12131    12136       +5     
=============================================
  Files           1577     1578       +1     
  Lines          63241    63322      +81     
  Branches        6993     6995       +2     
=============================================
+ Hits           38252    38283      +31     
- Misses         22804    22852      +48     
- Partials        2185     2187       +2     
Impacted Files Coverage Δ
...ntripplanner/ext/siri/SiriAlertsUpdateHandler.java 68.54% <0.00%> (+0.22%) ⬆️
...pplanner/ext/siri/SiriTimetableSnapshotSource.java 0.00% <0.00%> (ø)
...opentripplanner/ext/siri/SiriTripPatternCache.java 0.00% <0.00%> (ø)
...t/siri/updater/azure/AbstractAzureSiriUpdater.java 0.00% <0.00%> (ø)
.../opentripplanner/netex/index/NetexEntityIndex.java 99.01% <ø> (ø)
...ipplanner/netex/loader/parser/FareFrameParser.java 0.00% <0.00%> (ø)
...pentripplanner/netex/mapping/TariffZoneMapper.java 44.44% <ø> (ø)
...opentripplanner/ext/siri/SiriFuzzyTripMatcher.java 18.38% <13.33%> (-0.54%) ⬇️
...entripplanner/netex/mapping/TripPatternMapper.java 74.01% <55.55%> (-1.41%) ⬇️
...pplanner/netex/mapping/OperatorToAgencyMapper.java 81.25% <57.14%> (-18.75%) ⬇️
... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@leonardehrenfried leonardehrenfried left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.

hannesj
hannesj previously approved these changes Nov 9, 2022
@leonardehrenfried

Copy link
Copy Markdown
Member

For reference, there is also this: #4204

@vpaturet
vpaturet dismissed stale reviews from hannesj and leonardehrenfried via b5d22b6 November 9, 2022 11:42
@vpaturet
vpaturet marked this pull request as ready for review November 9, 2022 11:54
@vpaturet
vpaturet requested a review from a team as a code owner November 9, 2022 11:54
@vpaturet
vpaturet merged commit 7614feb into opentripplanner:dev-2.x Nov 9, 2022
t2gran pushed a commit that referenced this pull request Nov 9, 2022
@t2gran
t2gran deleted the otp2_add_fallback_for_missing_operator_name branch November 30, 2022 18:25
@t2gran t2gran added this to the 2.3 milestone Feb 15, 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.

Graph building fails when an Operator's name is not defined

5 participants