Fix error in access filter when access with time-penalty exits #5735
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
A critical bug was introduced with the #5715. The effect of the bug was that all normal access was filtered out when an access with time-penalty existed. So, normal transit with walk access would dissapaer from the result. When setting the access mode to WALK the system would work as normal, only if an access with opening-hours exist would the walk access be filtered away.
Issue
This was discovered at Entur 2 days ago, and we have not created an issue for it.
Unit tests
✅ The unit tests are updated to cover this case.
Documentation
🟥 Not relevant
Changelog
🟥 This bug was introduced in 2.5-SNAPSHOT, so it does not exist in the last release of OTP; Hence, do not belong in the change log.
Bumping the serialization version id
🟥 The model is not changed.