Repository navigation
Introduce API package for street module - #8281
leonardehrenfried wants to merge 7 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #8281 +/- ##
=============================================
- Coverage 76.17% 76.16% -0.01%
+ Complexity 24900 24895 -5
=============================================
Files 2671 2671
Lines 93270 93270
Branches 9293 9293
=============================================
- Hits 71049 71042 -7
- Misses 19082 19086 +4
- Partials 3139 3142 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
4aea5ed to
db4afcb
Compare
db4afcb to
4279738
Compare
|
Are any of the requests serialized? Do we need to bump the serialization id? |
|
Only ElevatorRequest implements Serializable, but I don't know why. I think it's mistake. So therefore I don't think we need to bump. |
| * elevators and stairs, is only referenced by the produced steps and must be resolved by the | ||
| * caller. | ||
| */ | ||
| public class StatesToStreetStepsMapper { |
There was a problem hiding this comment.
Consider: Mappers are not API classes, only classes that is passed between modules should be in the package. I know this is just a step towards cleaning up, but this needs to be moved again - later. If you want, we can discuss the migration strategy.
There was a problem hiding this comment.
I agree with this sentiment.
My plan is the following: The next PR introduces the split between api (containing mostly interfaces) and implementation. I would move this class into the implementation package so that it eventually becomes inaccessible outside of the module.
I am very happy to discuss the strategy. Let me know when is a good time for you.
# Conflicts: # application/src/main/java/org/opentripplanner/graph_builder/module/osm/internal/walkablearea/WalkableAreaBuilder.java # application/src/test/java/org/opentripplanner/graph_builder/module/TurnRestrictionModuleTest.java # application/src/test/java/org/opentripplanner/street/integration/TurnCostTest.java # application/src/test/java/org/opentripplanner/street/integration/TurnRestrictionTest.java
|
Conflicts are, once more, resolved. |
This PR looks big, but it is 99% import statements.
It introduces an API package for the street module:
street.api.request: sending a routing requeststreet.api.path: return types for the routing requestAll of these still leak the edges and vertices but they make the direction of travel visible.
I originally had the linking in this PR, too, but that barely added any value so I chose to defer it.
Ref #8081