kartoza / fbf-project

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

Calendar preview of flood events and Database are not always in sync #202

Closed NyakudyaA closed 4 years ago

NyakudyaA commented 4 years ago

Problem

Besided the time issue that we discussed earlier on with @lucernae It still seems that some events are not visible on the calendar even though they have been successfully been updated in the Database.

fetch-updates

This is the calendar preview calednar

lucernae commented 4 years ago

The frontend now behaves for live/current forecast only. For forecast dates greater than today, the calendar now only shows current forecast, which is the forecast made today (acquisition_date today), for the future (forecast_date greater than today).

If your forecast_date is in the future and you want to show it in the calendar, the acquisition_date needs to be today. This is because we don't have drill down mechanism for browsing different forecast in the same date (from previous acquisition_date).

If you want to upload flood event just to check the flood map and summaries, you can upload it into forecast_date in the past, and acquisition_date in the past (so it became historical forecast). For historical forecast, at the moment, we only shows the least lead_time available in the same forecast_date. Again, this is because we don't have drill down mechanism yet for browsing past forecast in the same date.

There is also a bug involved with calculating lead time, related with this issue, but I fixed it recently after discussing it with @NyakudyaA : https://github.com/kartoza/fbf-project/pull/200/files.

So, I think we can close this one.