datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

long wg_charters views need to be refactored (or removed)

Open rjsparks opened this issue 2 years ago • 2 comments

/wg/1wg-charters.txt and /wg/1wg-charters-by-acronym.txt have been 504'ing frequently at cloudflare (and landing in errors-datatracker.log) as the computation required to generate the view takes longer than cloudflare is willing to wait.

The results are cached, so once someone suffers the 504 and the computation finishes, subsequent requests will succeed until the cache expires. (Because of that, we don't know if the lack of complaints about the errors are because nobody uses the files or if they just keep trying and eventually succeed without telling us they ran into a problem).

This should either move to follow the pattern that id_all and id_all2 use (a cron-triggered management command updates files on disk, and the views just push those files) or remove the views entirely.

rjsparks avatar Apr 06 '22 17:04 rjsparks

I have sometimes wondered if views like this are useful at all. I suppose some automated process might download this and parse it, but if that's what it's being used for it would be much more useful to provide it in JSON or have an API that allows them to retrieve the list of WGs (again, in JSON) and then retrieve the individual charters via separate API calls.

jimfenton avatar Jul 23 '22 15:07 jimfenton

Perhaps remove this on a provisional basis and see if anyone complains?

jimfenton avatar Jul 23 '22 15:07 jimfenton