Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[PROD] Emergencies Overview - Disaster categorization #2118

Open
ypyelab opened this issue Nov 9, 2021 · 2 comments
Open

[PROD] Emergencies Overview - Disaster categorization #2118

ypyelab opened this issue Nov 9, 2021 · 2 comments

Comments

@ypyelab
Copy link

ypyelab commented Nov 9, 2021

Issue

The emergencies by default have a 'Yellow' categorization label. This is problematic, as it hinders the needed manual-work to select the crisis categorization related to an emergency. We need to be able to see what steps were not done.
Also, the pdf scrapper should be able to identify most of those categorization levels (standard template).

The pdf document from where the categorization level could be retrieved is not always available when the emergency is created. It can appear after some days. Also, through time, an emergency can change its categorization level (e.g. https://go.ifrc.org/emergencies/5220#reports). Therefore, we need to be actively 'listening' to the new appeals documents associated to an emergency, in case a change of its categorization level has happened.

Re: Florent message
"We really need to be better at reflecting the categorization on GO.
Latest example is about DRC, classified as RED with a DREF submitted as RED and a category in GO that is yellow."

Steps to reproduce

Example: This emergency had a yellow categorization level https://go.ifrc.org/emergencies/5623#reports, even if its associated DREF report https://adore.ifrc.org/Download.aspx?FileId=458168 was in a well-formatted manner (with reference to the 'red' categorization).
We had to manually change it from yellow to red.

This is probably happening as the default categorization level for emergencies is 0 (yellow): https://github.com/IFRCGo/go-api/blob/develop/api/models.py#L557

Expected behaviour

  • The pdf scrapper should be successfully extracting the categorization level in most of the cases.
  • If that is not the case, an indicative token should be used (e.g. '--'), instead of a 'yellow' label (instead of using 0 by default)

Impact

Anyone looking at emergency pages

Is there a workaround?

Users can contact IM for a manual update

@tovari
Copy link

tovari commented Nov 11, 2021

Indeed, the default category is yellow and we can change the category manually.
It is allocated during the emergency creation, when the first FR is submitted. This might be before the DREF request, so maybe a category update could be triggered by the DREF. What else could trigger a category update? Maybe Emergency Appeals?

@ypyelab ypyelab assigned ypyelab and unassigned ypyelab Oct 3, 2022
@nanometrenat
Copy link
Contributor

nanometrenat commented Mar 1, 2024

xref IFRCGo/go-web-app#684

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants