osm-welcome-tool
osm-welcome-tool copied to clipboard
Add manual refresh button
Just had the situation where I spotted a new user while going trough osmCha (was done 2 hours ago), but seems like neis already updated because that user also showed up in my rss feed. So being able to manually refresh from neis would be nice (so I could mark that person as having being welcomed)
Hello @thibaultmol Even though I understand the request, I would not push forward its implementation ! The request towards Pascal Neis API takes quite some time and you would risk to corrupt the files if 2 "update requests" are triggered at the same time (or at least if the 2nd is triggered before the end of the 1st).
I see, but you couldn't you implement it so that it checks if there is a request in progress, and if so, don't request a new one and just wait on the current one? EDIT: sorry if I'm glansing over something which would not make that doable
To be honest, the codebase is quite old (and not mine) and I don't really have the time (or the will) to do more than (small) fixes.
It would indeed be a nice feature to add, if anyone is interested to submit a PR, I'll be more than happy to merge it !