-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ordering on the Surge Alert table based on status
and opens
fields
#2036
Comments
surge_alert
table based on statusstatus
and opens
fields
could you please explain why do we have no Open alerts in this emergency page: while we have many Open alerts on the All Alerts page for this emergency: |
On the page where there are many open alerts we do not use these constraints: These filters filter out all the surge alerts concerning to event 6646. |
(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.) |
@szabozoltan69 Thanks for the quick assessment. @tovari this is indeed the case. We could remove those constraints |
based on IFRCGo/go-web-app#512 (comment)
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
The text was updated successfully, but these errors were encountered: