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 check for OSM relation members not being present in the extract #5379

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Sep 27, 2023

Summary

This fixes #5378.

The problem was that an OSM extract where relations refer to a way that isn't in that extract. We want to deal with it gracefully because compatibility with Geofabrik extracts is an important feature.

The thing is there was already a check if the way exists but it was looking at the wrong collection.

cc @atrawog

Issue

Fixes #5378

Unit tests

Added.

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

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

Comparison is base (fb35a61) 66.57% compared to head (d6c9bf9) 66.56%.
Report is 1 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5379      +/-   ##
=============================================
- Coverage      66.57%   66.56%   -0.01%     
  Complexity     15273    15273              
=============================================
  Files           1790     1790              
  Lines          69367    69371       +4     
  Branches        7306     7307       +1     
=============================================
- Hits           46181    46178       -3     
- Misses         20710    20715       +5     
- Partials        2476     2478       +2     
Files Coverage Δ
...pplanner/graph_builder/module/osm/OsmDatabase.java 77.97% <20.00%> (-0.64%) ⬇️

... and 3 files with indirect coverage changes

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

@leonardehrenfried leonardehrenfried changed the title Fix check for invalid relation references Fix check for relation members not being present in the extract Sep 28, 2023
@t2gran t2gran added this to the 2.5 (next release) milestone Sep 28, 2023
vesameskanen
vesameskanen previously approved these changes Sep 28, 2023
@leonardehrenfried leonardehrenfried changed the title Fix check for relation members not being present in the extract Fix check for OSM relation members not being present in the extract Sep 29, 2023
@leonardehrenfried leonardehrenfried merged commit 00c0304 into opentripplanner:dev-2.x Oct 10, 2023
5 checks passed
t2gran pushed a commit that referenced this pull request Oct 10, 2023
@leonardehrenfried leonardehrenfried deleted the fix-invalid-relation-references branch October 10, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processing austria-latest.osm.pbf fails with NullPointerException
4 participants