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 out of bounds when fetching NextLegs #6136

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

Conversation

miklcct
Copy link
Contributor

@miklcct miklcct commented Oct 10, 2024

Such geometries may happen when a replacement trip partially uses the original geometry.

Summary

Fix out of bounds under period of train disruption. The problem occurs when fetching geometries for a stop further than the geometry which may happen when a replacement trip partially uses the geometry.

Issue

Fixes #6072.

Unit tests

Added.

Documentation

None needed.

@miklcct miklcct requested a review from a team as a code owner October 10, 2024 09:05
@miklcct miklcct changed the title fix #6072 fix out of bounds when fetching NextLegs Oct 10, 2024
@habrahamsson-skanetrafiken
Copy link
Contributor

This approach has some issues and needs to be discussed in the developer meeting.

@t2gran t2gran added this to the 2.7 (next release) milestone Oct 16, 2024
@miklcct miklcct marked this pull request as draft October 24, 2024 14:29
@miklcct
Copy link
Contributor Author

miklcct commented Oct 24, 2024

As discussed in the developer meeting I am going to work on the shape generation at the point of generating new pattern.

@miklcct miklcct marked this pull request as ready for review October 25, 2024 10:14
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.91%. Comparing base (440498f) to head (8753f82).
Report is 74 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6136      +/-   ##
=============================================
- Coverage      69.93%   69.91%   -0.03%     
+ Complexity     17730    17729       -1     
=============================================
  Files           1996     1998       +2     
  Lines          75402    75451      +49     
  Branches        7717     7724       +7     
=============================================
+ Hits           52731    52749      +18     
- Misses         19995    20025      +30     
- Partials        2676     2677       +1     

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

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.

DataFetchingException (index out of bounds) when planning journey during period of disruption
3 participants