[05:04:10] Using the api, how do I query new file uploads? I tried the "new" type for recent changes in the file namespace, but that isn't producing what I was hoping for. [05:04:32] * TheSandDoctor wants to get newly uploaded files [05:20:28] either query the upload logs [05:21:05] ...hm, I guess NewFilesPager is not exposed via an API [05:21:11] so upload logs it is [05:21:53] list=logevents,type=upload,action=upload/upload [05:55:58] Thanks @tgr!! :) [15:36:51] Loading attached wiki list for global user X.X.X.X from DB [15:37:01] Loading CentralAuthUser for user X.X.X.X from cache object [15:37:07] Why is CA loading thoes for IPs? [18:20:33] >site.api('query', prop = 'imageinfo', iiprop = "timestamp|user|sha1", titles="File:Billy_Tipton.jpg") [18:20:34] I *should* be getting https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3ABilly_Tipton.jpg&iiprop=timestamp%7Cuser%7Csha1 based on the parameters etc, [18:20:34] But instead I get: [18:20:34] >OrderedDict([('batchcomplete', ''), ('query', OrderedDict([('normalized', [OrderedDict([('from', 'File:Billy_Tipton.jpg'), ('to', 'File:Billy Tipton.jpg')])]), ('pages', OrderedDict([('-1', OrderedDict([('ns', 6), ('title', 'File:Billy Tipton.jpg'), ('missing', ''), ('imagerepository', '')]))])), ('userinfo', OrderedDict([('id', 0), ('name', '2001:569:BC29:5600:5CF7:2E78:1DDD:4375'), ('anon', '')]))]))]) [18:20:34] I am somehow missing the entire imageinfo section, which is the point of the request.....ugh. [18:40:56] TheSandDoctor: make sure your API call is going to the correct server [18:41:09] that response looks like the server is saying "The file you specified doesn't exist" [18:41:25] which is funny because it has the right user [18:41:39] nvm [18:41:44] * TheSandDoctor facepalms [18:41:47] one sec [18:43:21] it's going to commons [18:43:45] site = mwclient.Site(('https', 'commons.wikimedia.org'), '/w/') [18:43:59] which works for other calls [18:44:20] site.api('query', list='logevents',type='upload', lenamespace=6, lelimit=50) [18:44:21] works [18:44:27] huh [18:45:24] well [18:45:27] that would explain it [18:45:32] thanks @skizzerz [18:45:34] right, if you look at the ApiSandbox, you'll see that particular file was uploaded to Wikipedia directly and isn't on Commons [18:45:39] yup [18:45:41] just noticed [18:45:42] haha [18:45:43] oops [18:46:08] thanks for helping point out the obvious....that I somehow missed :P [18:46:11] @Skizzerz [20:07:39] Pchelolo: Is https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/548221/ safe to backport to wmf.7 (current prod), so that crash is fixed this week instead of 2 weeks from now? [20:08:06] (if not, I could help with preparing more backports for other changes if it depends on something that changed in the last 6 days) [20:08:37] Krinkle: yeah, seems safe [20:08:53] doesn't depend on anything [20:09:24] thx [20:17:12] Current prod is wmf.5. ;-) [20:17:47] I don't know how I got to 7 [20:17:49] yeah, wmf.5 [20:18:25] Indeed, wmf.7 won't ever be deployed; next train is going to be wmf.8. [20:18:45] * James_F was worried that he'd been in a coma. [23:25:09] I count my weeks in wmf.XX versions