-
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
Exclude mezzanine zones from crowding announcements #697
Conversation
Coverage of commit
|
lib/content/message/predictions.ex
Outdated
@@ -82,7 +82,8 @@ defmodule Content.Message.Predictions do | |||
true -> compute_minutes(predicted_time, certainty) | |||
end | |||
|
|||
{crowding_data_confidence, crowding_description} = do_crowding(prediction) | |||
{crowding_data_confidence, crowding_description} = | |||
if zone == "m", do: {nil, nil}, else: do_crowding(prediction) |
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.
Would it be better to trigger on multi-source signs, as opposed to the zone id (which AFAIK is arbitrary)?
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.
Ah good point, I like that
Coverage of commit
|
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.
Looks good.
Summary of changes
Mezzanine zones should be omitted from announcing crowding information.
Slack message for context