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

[feature] Crowding widget backend #1834

Merged
merged 24 commits into from
Aug 25, 2023
Merged

Conversation

hannahpurcell
Copy link
Contributor

@hannahpurcell hannahpurcell commented Aug 17, 2023

Asana task: OL Crowding: start backend logic

And also this task

Tests are in-progress. This covers the backend logic that determines the conditions for showing the crowding widget, and serializes it.

Some of the changes are just renaming, or adding "Triptych" to an array of app names

  • Tests added?

@github-actions
Copy link

Coverage of commit 77f6948

Summary coverage rate:
  lines......: 41.2% (2269 of 5506 lines)
  functions..: 42.5% (1037 of 2438 functions)
  branches...: no data found

Files changed coverage rate:
                                                                           |Lines       |Functions  |Branches    
  Filename                                                                 |Rate     Num|Rate    Num|Rate     Num
  ===============================================================================================================
  lib/screens/config/v2/train_crowding.ex                                  |20.0%      5|50.0%     4|    -      0
  lib/screens/config/v2/triptych.ex                                        | 100%      1| 100%     2|    -      0
  lib/screens/predictions/prediction.ex                                    |33.3%      9|80.0%     5|    -      0
  lib/screens/stops/stop.ex                                                |36.1%     83|48.1%    27|    -      0
  lib/screens/v2/candidate_generator/triptych.ex                           |10.0%     10|16.7%     6|    -      0
  lib/screens/v2/candidate_generator/widgets/evergreen.ex                  | 0.0%      3| 0.0%     3|    -      0
  lib/screens/v2/candidate_generator/widgets/train_crowding.ex             |83.3%     24|50.0%     8|    -      0
  lib/screens/v2/widget_instance/train_crowding.ex                         |64.0%     25|92.3%    13|    -      0
  lib/screens/vehicles/parser.ex                                           | 0.0%     16| 0.0%     8|    -      0
  lib/screens/vehicles/vehicle.ex                                          |25.0%      4|66.7%     3|    -      0

Download coverage report

Copy link
Contributor

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

So sorry for the delay! Have a few questions, suggestions, and comments.

lib/screens/config/v2/train_crowding.ex Outdated Show resolved Hide resolved
lib/screens/config/v2/train_crowding.ex Outdated Show resolved Hide resolved
lib/screens/vehicles/parser.ex Show resolved Hide resolved
lib/screens/v2/widget_instance/train_crowding.ex Outdated Show resolved Hide resolved
lib/screens/v2/widget_instance/train_crowding.ex Outdated Show resolved Hide resolved
lib/screens/v2/widget_instance/train_crowding.ex Outdated Show resolved Hide resolved
@cmaddox5 cmaddox5 assigned hannahpurcell and unassigned cmaddox5 Aug 24, 2023
@github-actions
Copy link

Coverage of commit 8cf8bad

Summary coverage rate:
  lines......: 41.2% (2274 of 5517 lines)
  functions..: 42.6% (1038 of 2439 functions)
  branches...: no data found

Files changed coverage rate:
                                                                           |Lines       |Functions  |Branches    
  Filename                                                                 |Rate     Num|Rate    Num|Rate     Num
  ===============================================================================================================
  lib/screens/config/v2/train_crowding.ex                                  |20.0%      5|50.0%     4|    -      0
  lib/screens/config/v2/triptych.ex                                        | 100%      1| 100%     2|    -      0
  lib/screens/predictions/prediction.ex                                    |33.3%      9|80.0%     5|    -      0
  lib/screens/stops/stop.ex                                                |36.1%     83|48.1%    27|    -      0
  lib/screens/v2/candidate_generator/triptych.ex                           |10.0%     10|16.7%     6|    -      0
  lib/screens/v2/candidate_generator/widgets/evergreen.ex                  | 0.0%      3| 0.0%     3|    -      0
  lib/screens/v2/candidate_generator/widgets/train_crowding.ex             |83.3%     24|50.0%     8|    -      0
  lib/screens/v2/widget_instance/train_crowding.ex                         |67.7%     31|92.9%    14|    -      0
  lib/screens/vehicles/parser.ex                                           | 0.0%     21| 0.0%     8|    -      0
  lib/screens/vehicles/vehicle.ex                                          |25.0%      4|66.7%     3|    -      0

Download coverage report

@github-actions
Copy link

Coverage of commit 84054cd

Summary coverage rate:
  lines......: 41.2% (2275 of 5519 lines)
  functions..: 42.6% (1039 of 2440 functions)
  branches...: no data found

Files changed coverage rate:
                                                                           |Lines       |Functions  |Branches    
  Filename                                                                 |Rate     Num|Rate    Num|Rate     Num
  ===============================================================================================================
  lib/screens/config/v2/train_crowding.ex                                  |20.0%      5|50.0%     4|    -      0
  lib/screens/config/v2/triptych.ex                                        | 100%      1| 100%     2|    -      0
  lib/screens/predictions/prediction.ex                                    |33.3%      9|80.0%     5|    -      0
  lib/screens/stops/stop.ex                                                |36.1%     83|48.1%    27|    -      0
  lib/screens/v2/candidate_generator/triptych.ex                           |10.0%     10|16.7%     6|    -      0
  lib/screens/v2/candidate_generator/widgets/evergreen.ex                  | 0.0%      3| 0.0%     3|    -      0
  lib/screens/v2/candidate_generator/widgets/train_crowding.ex             |83.3%     24|50.0%     8|    -      0
  lib/screens/v2/widget_instance/train_crowding.ex                         |66.7%     33|93.3%    15|    -      0
  lib/screens/vehicles/parser.ex                                           | 0.0%     21| 0.0%     8|    -      0
  lib/screens/vehicles/vehicle.ex                                          |25.0%      4|66.7%     3|    -      0

Download coverage report

Copy link
Contributor

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

A couple of questions, but this looks great!

@cmaddox5 cmaddox5 assigned hannahpurcell and unassigned cmaddox5 Aug 24, 2023
@github-actions
Copy link

Coverage of commit 98e3fc2

Summary coverage rate:
  lines......: 41.2% (2276 of 5520 lines)
  functions..: 42.6% (1039 of 2440 functions)
  branches...: no data found

Files changed coverage rate:
                                                                           |Lines       |Functions  |Branches    
  Filename                                                                 |Rate     Num|Rate    Num|Rate     Num
  ===============================================================================================================
  lib/screens/config/v2/train_crowding.ex                                  |20.0%      5|50.0%     4|    -      0
  lib/screens/config/v2/triptych.ex                                        | 100%      1| 100%     2|    -      0
  lib/screens/predictions/prediction.ex                                    |33.3%      9|80.0%     5|    -      0
  lib/screens/stops/stop.ex                                                |36.1%     83|48.1%    27|    -      0
  lib/screens/v2/candidate_generator/triptych.ex                           |10.0%     10|16.7%     6|    -      0
  lib/screens/v2/candidate_generator/widgets/evergreen.ex                  | 0.0%      3| 0.0%     3|    -      0
  lib/screens/v2/candidate_generator/widgets/train_crowding.ex             |84.0%     25|50.0%     8|    -      0
  lib/screens/v2/widget_instance/train_crowding.ex                         |66.7%     33|93.3%    15|    -      0
  lib/screens/vehicles/parser.ex                                           | 0.0%     21| 0.0%     8|    -      0
  lib/screens/vehicles/vehicle.ex                                          |25.0%      4|66.7%     3|    -      0

Download coverage report

@github-actions
Copy link

Coverage of commit b58b32e

Summary coverage rate:
  lines......: 41.2% (2276 of 5520 lines)
  functions..: 42.6% (1039 of 2440 functions)
  branches...: no data found

Files changed coverage rate:
                                                                           |Lines       |Functions  |Branches    
  Filename                                                                 |Rate     Num|Rate    Num|Rate     Num
  ===============================================================================================================
  lib/screens/config/v2/train_crowding.ex                                  |20.0%      5|50.0%     4|    -      0
  lib/screens/config/v2/triptych.ex                                        | 100%      1| 100%     2|    -      0
  lib/screens/predictions/prediction.ex                                    |33.3%      9|80.0%     5|    -      0
  lib/screens/stops/stop.ex                                                |36.1%     83|48.1%    27|    -      0
  lib/screens/v2/candidate_generator/triptych.ex                           |10.0%     10|16.7%     6|    -      0
  lib/screens/v2/candidate_generator/widgets/evergreen.ex                  | 0.0%      3| 0.0%     3|    -      0
  lib/screens/v2/candidate_generator/widgets/train_crowding.ex             |84.0%     25|50.0%     8|    -      0
  lib/screens/v2/widget_instance/train_crowding.ex                         |66.7%     33|93.3%    15|    -      0
  lib/screens/vehicles/parser.ex                                           | 0.0%     21| 0.0%     8|    -      0
  lib/screens/vehicles/vehicle.ex                                          |25.0%      4|66.7%     3|    -      0

Download coverage report

Copy link
Contributor

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

🚀

@hannahpurcell hannahpurcell merged commit cd4f330 into master Aug 25, 2023
2 checks passed
@hannahpurcell hannahpurcell deleted the hp/crowding-widget-backend branch August 25, 2023 19: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