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 max search-window when paging #6189

Open
wants to merge 3 commits into
base: dev-2.x
Choose a base branch
from

Conversation

t2gran
Copy link
Member

@t2gran t2gran commented Oct 23, 2024

Summary

The PagingService was initialized with the dynamic max-search-window value, and not the request max search-window. This commit also updates the Transmodel API doc.

Issue

This was reported at Entur yesterday. It is a minor fix, so I have not created an issue for it.

Unit tests

This was an error in the wiring of the application - creating a good test for this is expensive and give little value.

Documentation

✅ The Transmodel API doc is updated.
✅ JavaDoc and code comments is updated/added
🟥 The GTFS API is not updated - someone who knows the API should do this

Changelog

Bumping the serialization version id

Not needed.

@t2gran t2gran added Bug Documentation Entur Test This is currently being tested at Entur labels Oct 23, 2024
@t2gran t2gran added this to the 2.7 (next release) milestone Oct 23, 2024
@t2gran t2gran requested a review from a team as a code owner October 23, 2024 11:59
@t2gran t2gran requested a review from eibakke October 23, 2024 11:59
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 6 lines in your changes missing coverage. Please review.

Project coverage is 69.90%. Comparing base (cee960f) to head (4d3fff1).

Files with missing lines Patch % Lines
...opentripplanner/apis/transmodel/TransmodelAPI.java 0.00% 3 Missing ⚠️
...ner/standalone/configure/ConstructApplication.java 0.00% 2 Missing ⚠️
...standalone/server/DefaultServerRequestContext.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #6189   +/-   ##
==========================================
  Coverage      69.90%   69.90%           
+ Complexity     17723    17722    -1     
==========================================
  Files           1998     1998           
  Lines          75443    75453   +10     
  Branches        7718     7718           
==========================================
+ Hits           52740    52748    +8     
- Misses         20025    20026    +1     
- Partials        2678     2679    +1     

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

The PagingService was initialized with the dynamic max-search-window value, and not the request max search-window.
This commit also updates the Transmodel API doc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Documentation Entur Test This is currently being tested at Entur
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants