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 explicit permissions for toggling weather stations in prep sheets #1871

Closed
10 tasks
andrea-williams opened this issue Apr 7, 2022 · 1 comment
Closed
10 tasks
Assignees
Labels
Ready User Story or Task Ready to be pulled into sprint User Story User story

Comments

@andrea-williams
Copy link
Collaborator

andrea-williams commented Apr 7, 2022

As an RWCO/ZWCO/maybe forecaster I want To be able to toggle on/off the weather stations used when calculating HFI & prep levels in a planning area So That I can complete a prep sheet for my planning area/fire centre using only the stations that I consider to be relevant to the current fire situation.

As an non-RWCO/ZWCO I want To be able to view a prep sheet So That I can know how bad things are going to be in my area/fire centre, but I should not be able to edit the weather stations being used to calculate prep levels because I cannot be trusted.

Additional Context

Acceptance Criteria

  • Given I am logged in as some user with {station selection} rights, When I navigate to a fire centre in HFI Calc, Then the checkboxes next to each weather station are enabled, and I am able to toggle on/off those checkboxes, and the prep level (etc.) values are immediately updated when a selection changes, and my changes should persist.
  • Given I am logged in as some user WITHOUT {station selection} rights, When I navigate to a fire centre in HFI Calc, Then the checkboxes next to each weather station are disabled, and I am not able to make any changes to which stations are included/excluded in calculations.
  • Given I am logged in as some user WITHOUT {station selection} rights, When I try to hack the system by modifying the network request to a POST request with a modified value for the "selected station codes", Then the POST request fails and my attempted changes are not persisted.
  • There exist unit tests covering all of the above AC.

Definition of Done

  • Ready to Demo in Sprint Review
  • Does what I have made have appropriate test coverage?
  • Documentation and/or scientific documentation exists and can be found
  • Peer Reviewed by 2 people on the team
  • Manual testing of all PRs in Dev and Prod
  • Merged
@andrea-williams andrea-williams added 4Refinement this ticket is ready for refinement with the team User Story User story labels Apr 7, 2022
@andrea-williams
Copy link
Collaborator Author

Hey team! Please add your planning poker estimate with ZenHub @conbrad @Sybrand

@conbrad conbrad added Ready User Story or Task Ready to be pulled into sprint and removed 4Refinement this ticket is ready for refinement with the team labels Apr 11, 2022
@conbrad conbrad self-assigned this Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready User Story or Task Ready to be pulled into sprint User Story User story
Projects
None yet
Development

No branches or pull requests

2 participants