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

When using ScheduledTransitLeg's copy builder, also copy alerts #6368

Merged

Conversation

leonardehrenfried
Copy link
Member

Summary

This fixes a bug where transit alerts where not copied when using the leg to get a new builder.

This PR only fixes the bug but I will work on making the ScheduledTransitLeg completely immutable so this doesn't happen again (we have the same problem with the fares).

Unit tests

Added.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.78%. Comparing base (0fb152d) to head (1bfc833).

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6368      +/-   ##
=============================================
- Coverage      69.79%   69.78%   -0.01%     
+ Complexity     17943    17941       -2     
=============================================
  Files           2046     2046              
  Lines          76685    76689       +4     
  Branches        7829     7829              
=============================================
+ Hits           53520    53521       +1     
- Misses         20423    20425       +2     
- Partials        2742     2743       +1     

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

@leonardehrenfried leonardehrenfried merged commit 5d02122 into opentripplanner:dev-2.x Jan 13, 2025
5 checks passed
@leonardehrenfried leonardehrenfried deleted the fix-alerts branch January 13, 2025 13:22
t2gran pushed a commit that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants