Skip to content

fix: handle unset maximumWaitTime and walk time on guaranteed interchanges - #496

Merged
reidzeibel merged 1 commit into
mainfrom
ridwan/handle-negative-wait-time-interchange
Nov 13, 2026
Merged

reidzeibel merged 1 commit into
mainfrom
ridwan/handle-negative-wait-time-interchange

Conversation

@reidzeibel

Copy link
Copy Markdown
Member

part of https://github.com/AtB-AS/kundevendt/issues/24807

Updates the utils as per AtB-AS/utils#68, and handle the same issue in older version of the app.

@reidzeibel
reidzeibel requested a balanced review from Copilot and removed request for marius-at-atb and rosvik November 13, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the guaranteed-interchange handling fixes and shared utilities dependency update.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Corrects guaranteed-interchange handling in the trip service for older app versions and updates the shared utilities dependency.

Changes:

  • Treats negative maximumWaitTime values as an unlimited wait.
  • Uses the previous transit service’s arrival time, excluding intervening walking time, when checking guarantees.
  • Adds regression tests and upgrades @atb-as/utils to 8.0.2.
File Description
src/​service/​impl/​trips/​utils.ts Corrects wait-limit and arrival-time handling for guaranteed connections.
src/​service/​impl/​trips/​__tests__/​utils.test.ts Covers walking transfers, exceeded wait limits, and the negative sentinel value.
pnpm-lock.yaml Locks utilities to 8.0.2 and consolidates dependency snapshots.
package.json Updates @atb-as/utils to ^8.0.2.

Review effort: Balanced

@reidzeibel
reidzeibel merged commit 7614ec0 into main Nov 13, 2026
3 checks passed
@reidzeibel
reidzeibel deleted the ridwan/handle-negative-wait-time-interchange branch November 13, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants