Skip to content

fix(StopController): remove AlertsByTimeframe#3336

Merged
thecristen merged 2 commits into
mainfrom
cbj/remove-extra-alertsbytimeframe
Jul 14, 2026
Merged

fix(StopController): remove AlertsByTimeframe#3336
thecristen merged 2 commits into
mainfrom
cbj/remove-extra-alertsbytimeframe

Conversation

@thecristen

Copy link
Copy Markdown
Collaborator

Scope

Asana Ticket: 🐞 Stop page | KeyError: key :alerts not found

Implementation

Two different Sentry errors indicate the AlertsByTimeframe plug was erroring on stop pages because it needed conn.assigns.alerts.

However... the stop pages don't make use of AlertsByTimeframe (which segmented alerts into current and upcoming) anymore. So it turns out we could get rid of this call entirely.

The final place that plug is still used in is BusStopChangesController, which handles /bus-stop-changes.

How to test

No more error on stop pages!

@thecristen
thecristen requested a review from a team as a code owner July 13, 2026 18:18
@thecristen
thecristen requested a review from jlucytan July 13, 2026 18:18
@thecristen
thecristen merged commit 05d1e6b into main Jul 14, 2026
27 checks passed
@thecristen
thecristen deleted the cbj/remove-extra-alertsbytimeframe branch July 14, 2026 14:47
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