Improve paging - avoid duplicates and missed itineraries when paging - #5551
Merged
Conversation
Removing itineraries outside the search-window is the responsibility of another filter.
� Conflicts: � src/test/java/org/opentripplanner/model/plan/pagecursor/DeduplicationPageCutTest.java
� Conflicts: � src/test/java/org/opentripplanner/model/plan/pagecursor/DeduplicationPageCutTest.java
� Conflicts: � src/test/java/org/opentripplanner/model/plan/pagecursor/DeduplicationPageCutTest.java
This will allow us to write a proper unit test on the paging logic.
This is used to allow a function can save a result in the box.
…tests. Turn on debug using the system property on the cmd line: "-DtestDebug"
…ng into PagingServiceFactory This will enable us to write unit test on the mapping and module test on the paging.
Co-authored-by: Leonard Ehrenfried <mail@leonard.io>
Member
|
Can you resolve the conflicts? |
jtorin
suggested changes
Dec 8, 2023
jtorin
left a comment
Contributor
There was a problem hiding this comment.
I've not finished the whole PR yet, will continue in another session.
Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
jtorin
suggested changes
Dec 11, 2023
jtorin
left a comment
Contributor
There was a problem hiding this comment.
Second and last batch of review comments.
(It was like being on a quest with Falkor... 😅)
The unit-test for CharacterEscapeFormatter is also improved.
Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
This also address a few comments from the review. More unit-tests are added and a few is cleaned. # Conflicts: # src/test/java/org/opentripplanner/framework/token/TokenTypeTest.java
….java Co-authored-by: Johan Torin <jtorin@users.noreply.github.com>
Member
Author
|
@jtorin Thank you for a very good review! I think I have fixed all issues now, except one comment I did not understand. |
t2gran
added a commit
to entur/OpenTripPlanner-LegacyHSLFork
that referenced
this pull request
Dec 12, 2023
…ed all commits including a5caefb)
- plus a small cleanup in PagingServiceFactory.
t2gran
force-pushed
the
serialize_page_token
branch
from
December 13, 2023 12:46
74156d0 to
ad2e35d
Compare
jtorin
reviewed
Dec 13, 2023
leonardehrenfried
previously approved these changes
Dec 13, 2023
leonardehrenfried
left a comment
Member
There was a problem hiding this comment.
I must admit that this code goes a little over my head but the code quality is solid. I've picked up on a typo but overall this looks good.
…n/deletionflagger/OutsideSearchWindowFilter.java Co-authored-by: Leonard Ehrenfried <mail@leonard.io>
leonardehrenfried
approved these changes
Dec 14, 2023
jtorin
approved these changes
Dec 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
There was a few smaller issues with the paging. This PR clean up the code and fixes a few bugs. It also improve the token serialization framework. Ideally this PR could be split in at least 3 PRs, but that would lead to problems with the forward and backward compatibility.
Overview
PagingServicethe entry pointIssue
Closes #5040
Unit tests
✅ Unit-test
✅ Module test
Documentation
The JavaDoc is updated, but the paging design doc is not - we will do that in another PR.
Changelog
✅
Bumping the serialization version id
Not requiered.