kartoza / fbf-project

Project data and resources for WB Forecast Based Financing work
23 stars 15 forks source link

Showing forecast information in calendar based on trigger status #84

Closed timlinux closed 5 years ago

timlinux commented 5 years ago

I upload a flood:

image

I would expect to see a new circle in the calendar on the forecast date

image

Also maybe we should display a message indicating that the flood is being processed (or jump straight to the dashboard if the flood dashboard is ready). @NyakudyaA could put an extra field in flood_event called processing_state that shows in_progress or ready as valid options. In the first step of the post upload trigger we could set this to in_progress and the front end can regularly poll with a nice throbber showing we are still working. On the last step of the trigger, this field can be updated to done and the JS frontend could fetch that value and know it could go on to load the flood dashboard. Also the calendar would then update to show the trigger status.

@lucernae I think after our discussion yesterday, we should have a fourth state "flood event, no activation" which shows flood events that have e.g. been manually uploaded but that do not trigger activation.

image

meomancer commented 5 years ago

need to update the historic logic