Skip to content

Fix bookWhen field is null in the Transmodel API#6385

Merged
t2gran merged 1 commit into
opentripplanner:dev-2.xfrom
entur:fix_bug_book_when_is_null
Jan 15, 2025
Merged

Fix bookWhen field is null in the Transmodel API#6385
t2gran merged 1 commit into
opentripplanner:dev-2.xfrom
entur:fix_bug_book_when_is_null

Conversation

@t2gran
Copy link
Copy Markdown
Member

@t2gran t2gran commented Jan 14, 2025

Summary

The bookWhen field in booking-info is not populated in the Transmodel API any more. This is a regression. The problem was introduced in f312144.

Issue

Closes #6384

Unit tests

🟥 This is a critical fix - writing a unit test for this require refactoring. The implementation is imperative and the business rules is not encapsulated. So, I have not provided any test - that would introduce extra risk.

Documentation

🟥 Not relevant

Changelog

✅ Should be included

Bumping the serialization version id

🟥 No changes to the serialized model

@t2gran t2gran added !Bug Apply to issues describing a bug and PRs witch fixes it. Regression Entur Test This is currently being tested at Entur labels Jan 14, 2025
@t2gran t2gran added this to the 2.7 (next release) milestone Jan 14, 2025
@t2gran t2gran requested a review from a team as a code owner January 14, 2025 18:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.80%. Comparing base (a5e829d) to head (09fb9d8).
Report is 26 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...smodel/model/timetable/BookingArrangementType.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #6385   +/-   ##
==========================================
  Coverage      69.79%   69.80%           
- Complexity     17939    17942    +3     
==========================================
  Files           2046     2046           
  Lines          76678    76678           
  Branches        7830     7830           
==========================================
+ Hits           53521    53524    +3     
+ Misses         20414    20412    -2     
+ Partials        2743     2742    -1     

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

Copy link
Copy Markdown
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'm sorry I broke this. :(

I should have paid more attention.

@vpaturet vpaturet self-requested a review January 15, 2025 11:37
@t2gran t2gran added Entur Test This is currently being tested at Entur and removed Entur Test This is currently being tested at Entur labels Jan 15, 2025
@t2gran t2gran merged commit 7dc8617 into opentripplanner:dev-2.x Jan 15, 2025
@t2gran t2gran deleted the fix_bug_book_when_is_null branch January 15, 2025 18:22
t2gran pushed a commit that referenced this pull request Jan 15, 2025
@t2gran t2gran removed the Regression label Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it. Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The bookWhen field is null in the Transmodel API

3 participants