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

Add fuel types and critical hours to advisory #3918

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

dgboss
Copy link
Collaborator

@dgboss dgboss commented Sep 11, 2024

  • advisory bulletin only displays info for selected fire zone unit
  • bulletin includes up to top 3 fuel types
  • critical hours start time is the earliest start time from the top three fuel types
  • critical hours end time is the latest end time from the three top fuel types
  • closes ASA: Add Fuel Information to Advisory Bulletin #3879

Test Links:

Landing Page
MoreCast
Percentile Calculator
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (fac4b2f) to head (26fbecd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3918   +/-   ##
=======================================
  Coverage   81.31%   81.31%           
=======================================
  Files         294      294           
  Lines       11362    11362           
  Branches      526      526           
=======================================
  Hits         9239     9239           
  Misses       2089     2089           
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dgboss dgboss requested review from brettedw and conbrad September 12, 2024 15:24
@brettedw
Copy link
Collaborator

Looking awesome, learned a few things. Only thing I noticed was that if there is fuel stats but no critical hours for some reason the text reads something like:

There is a fire behaviour Advisory in effect for N2-Invermere Fire Zone between null:00 and null:00 for fuel types M-1/M-2, C-3 and C-7.

@dgboss
Copy link
Collaborator Author

dgboss commented Sep 12, 2024

Looking awesome, learned a few things. Only thing I noticed was that if there is fuel stats but no critical hours for some reason the text reads something like:

There is a fire behaviour Advisory in effect for N2-Invermere Fire Zone between null:00 and null:00 for fuel types M-1/M-2, C-3 and C-7.

Huh? It's not supposed to do that! I'll re-visit the logic. Might be a null check versus an undefined check thing. Thanks!

Copy link

sonarcloud bot commented Sep 12, 2024

@dgboss
Copy link
Collaborator Author

dgboss commented Sep 12, 2024

Looking awesome, learned a few things. Only thing I noticed was that if there is fuel stats but no critical hours for some reason the text reads something like:

There is a fire behaviour Advisory in effect for N2-Invermere Fire Zone between null:00 and null:00 for fuel types M-1/M-2, C-3 and C-7.

Huh? It's not supposed to do that! I'll re-visit the logic. Might be a null check versus an undefined check thing. Thanks!

Yep, was a null vs. undefined check. Fixed in 26fbecd

@dgboss dgboss temporarily deployed to production September 12, 2024 16:57 Inactive
@dgboss dgboss merged commit 5493240 into main Sep 12, 2024
27 checks passed
@dgboss dgboss deleted the task/advisory-critical-hours/3879 branch September 12, 2024 17:09
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.

ASA: Add Fuel Information to Advisory Bulletin
3 participants