Skip to content

fix(fares): Allow grouped fare cards to ingest Summarys#3329

Merged
jlucytan merged 5 commits into
mainfrom
jlt/fix/500-on-ferry-fares
Jul 15, 2026
Merged

fix(fares): Allow grouped fare cards to ingest Summarys#3329
jlucytan merged 5 commits into
mainfrom
jlt/fix/500-on-ferry-fares

Conversation

@jlucytan

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 🐞 500 error when visiting the latest (preview) version of the ferry fares page

Implementation

Changes a few group_fare_card calls to handle the case that the fare returned from fare_from_token is a Summary instead of a Fare.

Additionally trims whitespace from tokens so ferry_winthrop (note the space) doesn't result in an invalid fare

Screenshots

Before
before fixing grouped fare card:
image

after fixing grouped fare card, before trimming single tokens:
image

After
image

How to test

Verify that this ferry fare preview page loads and properly displays the grouped fare and the Winthrop fare.

@jlucytan
jlucytan requested review from a team and amaisano as code owners July 10, 2026 17:34
@jlucytan
jlucytan requested a review from lvachon1 July 10, 2026 17:34

@joshlarson joshlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Well... I imagine content/design will want to update how exactly this renders, but at least for now, this is a huge improvement over the page 500-ing.

The one blocker for me is the test issue - once that's fixed, then I think this is good to go!

Comment thread test/dotcom/content_rewriters/liquid_objects/fare_test.exs Outdated
@jlucytan
jlucytan enabled auto-merge (squash) July 15, 2026 14:11
@jlucytan
jlucytan merged commit b518a2d into main Jul 15, 2026
18 checks passed
@jlucytan
jlucytan deleted the jlt/fix/500-on-ferry-fares branch July 15, 2026 14:19
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.

2 participants