Closed samshara closed 1 month ago
could you please explain why do we have no Open alerts in this emergency page: https://go-stage.ifrc.org/emergencies/6646/surge
while we have many Open alerts on the All Alerts page for this emergency: https://go-stage.ifrc.org/alerts/all?event=6646
On the page where there are many open alerts we do not use these constraints: is_active=true and end >= 2024-03-04
These filters filter out all the surge alerts concerning to event 6646. So maybe the "is_active" vs. "open" conflicts here.
(If I resend the 0-giving request with curl with removing these 2 constraints, in the response there are all the 57 alerts that is on the other page, other request.)
On the page where there are many open alerts we do not use these constraints: is_active=true and end >= 2024-03-04
These filters filter out all the surge alerts concerning to event 6646. So maybe the "is_active" vs. "open" conflicts here.
@szabozoltan69 Thanks for the quick assessment. @tovari this is indeed the case. We could remove those constraints (is_active=true, end >=2024-03-04[today's date])
from the query or include those constraints when calculating the status. @anamariaescobar do you have any suggestions?
based on https://github.com/IFRCGo/go-web-app/issues/512#issuecomment-1931792776
Default Ordering Rules
Open
alerts should be displayed at the top.Stood
downs should follow open alerts.Closed
alerts should be displayed last. Within the open alerts category, sorting should be done based on the alert date (opens
).The status calculation is performed on the client side right now, and the logic is implemented as follows:
stood_down
, then the status isStood Down
.closes
) is earlier than the current date, the status is displayed asClosed
. Otherwise, it is displayed asOpen
.Workplan
Status
fieldstatus
andopens
(date field)cc @thenav56 @k9845