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

Exclude mezzanine zones from crowding announcements #697

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

PaulJKim
Copy link
Collaborator

Summary of changes

Mezzanine zones should be omitted from announcing crowding information.

Slack message for context

@github-actions
Copy link

Coverage of commit 2c62a6b

Summary coverage rate:
  lines......: 75.4% (1921 of 2548 lines)
  functions..: 76.9% (522 of 679 functions)
  branches...: no data found

Files changed coverage rate:
                                                             |Lines       |Functions  |Branches    
  Filename                                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================================
  lib/content/message/predictions.ex                         |56.1%    123|68.8%    16|    -      0

Download coverage report

@@ -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)
Copy link
Collaborator

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)?

Copy link
Collaborator Author

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

@github-actions
Copy link

Coverage of commit 23272e0

Summary coverage rate:
  lines......: 75.5% (1927 of 2552 lines)
  functions..: 77.1% (524 of 680 functions)
  branches...: no data found

Files changed coverage rate:
                                                             |Lines       |Functions  |Branches    
  Filename                                                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================================================
  lib/content/message/predictions.ex                         |58.1%    124|68.8%    16|    -      0
  lib/signs/utilities/predictions.ex                         |95.8%     71| 100%    12|    -      0

Download coverage report

Copy link
Collaborator

@panentheos panentheos left a comment

Choose a reason for hiding this comment

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

Looks good.

@PaulJKim PaulJKim merged commit ddf1fa4 into main Sep 22, 2023
1 check passed
@PaulJKim PaulJKim deleted the pk/no-crowding-in-mezzanines branch September 22, 2023 13:40
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