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 bookWhen field is null in the Transmodel API #6385

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

Conversation

t2gran
Copy link
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 Regression This feature is no longer working. 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
Copy link

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).

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
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 removed the Entur Test This is currently being tested at Entur label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Regression This feature is no longer working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The bookWhen field is null in the Transmodel API
3 participants