[PATCH 1/2] REST: Resolve performance issues with '/events' web view

2018-05-10 Thread Stephen Finucane
The dropdown select-based filters in the web view of the REST API have stung us a few times. In this case, populating these filters for the '/events' endpoint results in a huge query that hammers the database and results in seriously laggy responses. The root cause of this performance issues was e

[PATCH 2/2] Revert "api: Only provide JSON version of events list"

2018-05-10 Thread Stephen Finucane
This reverts commit 90d9ee14e73e8ec9248e89c788d64867c4a4bb74. The root cause of this performance issue was not the use of the JSONRenderer but rather the population of filter forms. The latter is now disabled, meaning we can start using the original renderer. Signed-off-by: Stephen Finucane Cc: