JJMC89 added a comment.
Re 598269 PS2:
The patch iterates a specific set of groups and calculates the delay based on
the first one hit.
It should iterate the groups in the response and calculate the delay and wait
for the smallest duration.
Using the example below response below for the move action:
user: delay=60/8=7.5
autopatrolled: delay = 60/32=1.875
therefore wait for 1.875 seconds
name=Example response (my Commons rate limits)
{
"batchcomplete": "",
"query": {
"userinfo": {
"id": 4724680,
"name": "JJMC89",
"ratelimits": {
"move": {
"user": {
"hits": 8,
"seconds": 60
},
"autopatrolled": {
"hits": 32,
"seconds": 60
}
},
"edit": {
"user": {
"hits": 900,
"seconds": 180
},
"autopatrolled": {
"hits": 10500,
"seconds": 180
}
},
"upload": {
"user": {
"hits": 380,
"seconds": 4320
},
"autopatrolled": {
"hits": 999,
"seconds": 1
}
},
"linkpurge": {
"user": {
"hits": 30,
"seconds": 60
}
},
"badcaptcha": {
"user": {
"hits": 30,
"seconds": 60
}
},
"emailuser": {
"user": {
"hits": 20,
"seconds": 86400
}
},
"changeemail": {
"user": {
"hits": 4,
"seconds": 86400
}
},
"rollback": {
"user": {
"hits": 100,
"seconds": 60
}
},
"purge": {
"user": {
"hits": 30,
"seconds": 60
}
},
"renderfile": {
"user": {
"hits": 700,
"seconds": 30
}
},
"renderfile-nonstandard": {
"user": {
"hits": 70,
"seconds": 30
}
},
"cxsave": {
"user": {
"hits": 10,
"seconds": 30
}
},
"urlshortcode": {
"user": {
"hits": 50,
"seconds": 120
}
},
"thanks-notification": {
"user": {
"hits": 10,
"seconds": 60
}
},
"badoath": {
"user": {
"hits": 10,
"seconds": 60
}
}
}
}
}
}
TASK DETAIL
https://phabricator.wikimedia.org/T253180
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, JJMC89
Cc: JJMC89, Multichill, Xqt, Aklapper, pywikibot-bugs-list, Dominicbm,
JohnsonLee01, Blissjay007, Dijkstra, Oblanco79, Alter-paule, Beast1978, Un1tY,
Zkhalido, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, Kent7301,
Meekrab2012, joker88john, Viztor, CucyNoiD, NebulousIris, Wenyi, Gaboe420,
Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420,
Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6,
Tbscho, MayS, WSH1906, Lewizho99, Mdupont, Maathavan, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
