-
Notifications
You must be signed in to change notification settings - Fork 9
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
HFI Calculator: Convert fuel type cells to a select field / dropdown #1555
Comments
Permission for this as well? |
@conbrad re. permissions - are you seeing fine grained permissions? Right now I'm seeing "view" and "edit" roles. I'd assume anyone with an idir can view - so maybe that's not even a hard permission, but edit is then required to see it on the front end, and to post/put to the back-end. |
@Sybrand yeah I think all we're concerned about are those 2 permissions at the moment, which makes things easier to get started. |
We should have requests persisted to database by the time we tackle this ticket, I think this AC can be updated to be persisted across all users instead of per user browser session. |
A lot of this work has been made more manageable with the current work we're doing migrating the logic from frontend to backend. It may be a good opportunity to refactor the request/response models for HFI in this ticket to be more explicit, since this is post MVP and we'll have the clearest picture of field structure when tackling this ticket. Thoughts, @Sybrand ? |
re: RISK in Additional Context. I'm thinking we'll need to implement a lockfile mechanism for writing changes to the DB so that we don't encounter race conditions when 2 people try to save changes simultaneously. Not sure how to handle situation where the page is stale for a viewer because someone else has recently submitted changes... |
@andrea-williams re. overwriting. It's more complicated than that (meaning - let's leave it for now) ; You'd need to push changes to all other open browsers to avoid overwrites. So we'd need a push mechanism - something we haven't thought about at all. |
HFI Calc - Refactor Request & Response Structure [bcgov#1555](bcgov#1555) refactor(hfi calculator): Changed HFI request and result structure, remove selected_station_code_ids and made request/response structure more strict.
As a Z/RWCO I want to be able to change the representative fuel type for a weather station So That I can consider all relevant fuel types throughout the fire season for a given weather station
Additional Context
Acceptance Criteria
Given I am using the HFI Calculator, When I change a fuel type for a weather station, Then that change is reflected across all days and views (daily/weekly) for that prep period - I can only change it in the prep period view, not daily viewsGiven I change a fuel type for a weather station, that change persists for the user that made the change within browser sessions, pending HFI Calc: All users see same information vs. local changes #1634 decisioncopy-to-clipboardPDF generation workflowGiven I change a fuel type for a weather station, a shimmer effect indicates a row is recalculating (per Fire Behaviour Calculator) - the planning area row (note: mean fire intensity and prep level may recalculate)Definition of Done
The text was updated successfully, but these errors were encountered: