-
Notifications
You must be signed in to change notification settings - Fork 2
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
tweak: Train Crowding Widget Logging #1839
Changes from 12 commits
e5c4110
09d5f13
a3e6bae
f6871e9
3f1c328
f823c47
9f2a37e
6f8b9f1
0f3ac3c
a3dee5b
6735403
1ffe934
f3940ef
24155be
4861948
d679aba
c6df566
d596f36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
defmodule Screens.Vehicles.Carriage do | ||
@moduledoc false | ||
|
||
defstruct car_number: nil, | ||
occupancy_status: nil | ||
|
||
@type occupancy_status :: | ||
:many_seats_available | ||
| :few_seats_available | ||
| :standing_room_only | ||
| :crushed_standing_room_only | ||
| :full | ||
| :no_data_available | ||
| :not_accepting_passengers | ||
| nil | ||
|
||
@type t :: %__MODULE__{ | ||
car_number: String.t(), | ||
occupancy_status: occupancy_status | nil | ||
} | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,14 @@ defmodule ScreensWeb.V2.ScreenApiController do | |
screen_side | ||
) | ||
|
||
json(conn, ScreenData.by_screen_id(screen_id)) | ||
json( | ||
conn, | ||
ScreenData.by_screen_id(screen_id, | ||
is_real_screen: is_screen, | ||
screen_id: screen_id, | ||
triptych_pane: triptych_pane | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initially, I was worried that we're passing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think one of the advantages to using an I definitely see where you are coming from though. My biggest hesitation with conditionally adding it is that it will make the code here a little more complex for no drastic benefit. What do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I can see that. Works for me! |
||
) | ||
) | ||
end | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From our huddle conversation, I suggested this so the train_crowding widget only has the stuff it needs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And then the associated changes are needed in the train_crowding candidate_generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh I see. I misunderstood. Will make that change now.