Skip to content

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

Merged
leonardehrenfried merged 2 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:fix-alerts
Jan 13, 2025
Merged

When using ScheduledTransitLeg's copy builder, also copy alerts#6368
leonardehrenfried merged 2 commits into
opentripplanner:dev-2.xfrom
leonardehrenfried:fix-alerts

Conversation

@leonardehrenfried

Copy link
Copy Markdown
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.

@leonardehrenfried
leonardehrenfried requested a review from a team as a code owner January 9, 2025 07:25
@leonardehrenfried leonardehrenfried added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Jan 9, 2025
@codecov

codecov Bot commented Jan 9, 2025

Copy link
Copy Markdown

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
@leonardehrenfried
leonardehrenfried deleted the fix-alerts branch January 13, 2025 13:22
t2gran pushed a commit that referenced this pull request Jan 13, 2025
@t2gran t2gran added this to the 2.7 (next release) milestone Jan 29, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants