[PROD] FR form - Emergency search field
Closed this issue · 7 comments
The emergency search field on the Field Report form doesn't provide all relevant emergencies.
https://go.ifrc.org/reports/new
Sample emergencies not showing up in the field:
VEN: Anticipatory Action operation
ISR: Civil Unrest - 2023-09 - Eritrean irregular migrants civil unrest in Tel Aviv
ZAF: Fire - 2023-08 - Structured Fires in Johannesburg city
CUB: Cyclone - 2023-08 - Huracan Idalia Cuba
Due to the issue, users cannot attach filed reports to existing emergencies, thus they create new emergencies, which is not ideal.
A full site elasticsearch index update was run.
After that "ISR: Civil Unrest - 2023-09..." appears in searches, but the other 3 not.
Investigating the reason...
It would be good to check if "CUB: Cyclone - 2023-08 - Huracan Idalia Cuba" event (id: 6633) is there in index or not.
Is it possible that in the search request no user identification (no token) arrives from frontend to backend, so no chance to have other query than public ones? @frozenhelium
In debug of HayStackSearch:
if self.request.user.is_authenticated:
p self.request.user
<django.contrib.auth.models.AnonymousUser object at ...>
In some cases we cannot find even public emergencies. E.g.:
LBY: إعصار - 2023-09 - Weather Situation ( Floods- Heavy Rains ) in Libya as a result of Hurricane Danielle