https://bugzilla.wikimedia.org/show_bug.cgi?id=59678
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ladsgroup@gmail.com
--- Comment #5 from Amir Ladsgroup ladsgroup@gmail.com ---
data/api.py: good: we can also handle other types of token problems bad: edit tokens also serve to detect edit conflicts, and we cannot handle those at the data/api.py level...
Maybe I'm wrong but edit conflict hasn't been detected by tokens, it has been detected by basetimestamp in mediawiki [1] and if edit conflict happens it raises editconflict error not badtoken error. See the error table. [1]: https://www.mediawiki.org/wiki/API:Edit
If we want to avoid undetected edit conflicts the only thing we need to do is adding basetimestamp to action=edit api calls.