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: keep inline_alerts field for compatibility #2308

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/screens/v2/widget_instance/departures.ex
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ defmodule Screens.V2.WidgetInstance.Departures do
type: :departure_row,
route: serialize_route(departures, route_pill_serializer),
headsign: serialize_headsign(departures, screen),
times_with_crowding: serialize_times_with_crowding(departures, screen, now)
times_with_crowding: serialize_times_with_crowding(departures, screen, now),
# Temporarily retained for compatibility with deployed clients that expect this field
inline_alerts: []
}
end

Expand Down
1 change: 0 additions & 1 deletion test/screens/v2/departure_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
defmodule Screens.V2.DepartureTest do
use ExUnit.Case, async: true

alias Screens.Alerts.Alert
alias Screens.Routes.Route
alias Screens.Predictions.Prediction
alias Screens.Schedules.Schedule
Expand Down
1 change: 0 additions & 1 deletion test/screens/v2/widget_instance/departures_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
defmodule Screens.V2.WidgetInstance.DeparturesTest do
use ExUnit.Case, async: true

alias Screens.Alerts.Alert
alias ScreensConfig.V2.Departures.Header
alias ScreensConfig.V2.Departures.Layout
alias ScreensConfig.V2.FreeTextLine
Expand Down
Loading