Skip to content

Conversation

@t2gran
Copy link
Member

@t2gran t2gran commented Dec 3, 2025

Summary

This add support for IDs, not just raptor stop indexes as the input to OTP when debugging path/stops in Raptor. This is a very small improvement and it only apply to debugging travel searches - it does not have an effect on the search itself. The parameter is no exposed on any API, set from InteractiveOTPMain and SpeedTest.

Issue

🟥 No issue, very small improvement.

Closes #45

Unit tests

✅ Updated

Documentation

✅ JavaDoc updated

Changelog

🟥 Not relevant

Bumping the serialization version id

RouteRequest->DebugRaptor is changed, stops and path fields go from int to String.

…teRequest)

The ID lookup is done the RaptorRequestMapper
@t2gran t2gran added this to the 2.9 (next release) milestone Dec 3, 2025
@t2gran t2gran added !Improvement A functional improvement or micro feature +Bump Serialization Id Add this label if you want the serialization id automatically bumped after merging the PR +Skip Changelog This is not a relevant change for a product owner since last release. labels Dec 3, 2025
@t2gran t2gran requested a review from a team as a code owner December 3, 2025 15:32
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.09%. Comparing base (dcf77be) to head (d107baa).
⚠️ Report is 99 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...oradapter/transit/mappers/RaptorRequestMapper.java 84.61% 1 Missing and 1 partial ⚠️
...lanner/routing/api/request/DebugRaptorBuilder.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #7113      +/-   ##
=============================================
+ Coverage      72.06%   72.09%   +0.03%     
- Complexity     20659    20706      +47     
=============================================
  Files           2235     2241       +6     
  Lines          83566    83725     +159     
  Branches        8344     8355      +11     
=============================================
+ Hits           60220    60362     +142     
- Misses         20422    20434      +12     
- Partials        2924     2929       +5     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

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

I have a few small comments.

public class RaptorRequestMapper<T extends RaptorTripSchedule> {

private static final Logger LOG = LoggerFactory.getLogger(RaptorRequestMapper.class);
private static final Pattern NUMBER_PATTERN = Pattern.compile("\\d+");
Copy link
Contributor

Choose a reason for hiding this comment

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

this is never used

Copy link
Contributor

@jessicaKoehnke jessicaKoehnke left a comment

Choose a reason for hiding this comment

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

one small thing

@t2gran t2gran force-pushed the support_stop_ids_raptor_debug branch from 357d207 to d107baa Compare December 8, 2025 09:16
@jessicaKoehnke jessicaKoehnke self-requested a review December 8, 2025 09:26
@t2gran t2gran merged commit 053cdb8 into opentripplanner:dev-2.x Dec 8, 2025
8 checks passed
@t2gran t2gran deleted the support_stop_ids_raptor_debug branch December 8, 2025 09:43
t2gran pushed a commit that referenced this pull request Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

+Bump Serialization Id Add this label if you want the serialization id automatically bumped after merging the PR !Improvement A functional improvement or micro feature +Skip Changelog This is not a relevant change for a product owner since last release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What does OTP Deployment look like?

3 participants