[10:14:14] Last night I met an Estonian at a local tech meetup. I told him I was going to Tallinn, he was excited that I was staying in the old town and gave me restaurant recommendations. One place was III Draakon (Dragons Head), a medieval themed restaurant serving mead and medieval dishes and the other was a pancake place called Pub Kompressor. [20:53:08] 🌍Votre voix compte ! Contribuez Ă  l'agenda Wiki Indaba 2024 en participant Ă  l'enquĂȘte prĂ©-Indaba. 📋 Partagez vos idĂ©es et façonnez les discussions qui vous intĂ©ressent. Le sondage se termine le 5 fĂ©vrier ! 🚀 #WikiIndaba2024 https://forms.gle/tqCDWNqNjkkDohhY7 : https://tools-static.wmflabs.org/bridgebot/815f26c1/file_56795.jpg [21:08:56] With this API call, I get the uploader of the latest revision of a file. Is there a way to "flip it" so that I get the uploader of the first revision? https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=imageinfo&meta=&titles=File%3A%C3%96sthammar%20vapen.svg&formatversion=2&iiprop=user&iilimit=1 [22:31:50] No (T176673 (https://phabricator.wikimedia.org/T176673)). Usually the first revision of the file page is by the same user though. (re @Jan_ainali: With this API call, I get the uploader of the latest revision of a file. Is there a way to "flip it" so that I get the uploader ...) [22:34:39] Unfortunately I query in heraldry, where if not every, an unusual amount is modified. (re @gtisza: No (T176673). Usually the first revision of the file page is by the same user though.) [22:37:20] That's fine as long as it did not get selectively revision-deleted or something similarly weird. [22:39:10] No? In my linked example above there are two revisions, from two different users. [22:41:05] The first file revision always corresponds to the first file page revision unless one of them got deleted. [22:41:53] Okay. But how does that help when setting limit 1 I get the last revision. [22:42:24] The prop=revisions API can list from oldest to newest. [22:44:00] You could also use list=logevents, that corresponds 1:1 to file revisions. [22:44:40] Or you can look at iiprop=extmetadata which gets the author from the info template, but there's no guarantee that will be a username. [22:47:06] Very confusing that one should set the `rvdir=newer` to get the oldest :) [22:47:07] https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=revisions&meta=&titles=&generator=allpages&formatversion=2&rvprop=user&rvlimit=1&rvdir=newer&gapfrom=%C3%96sthammar%20vapen.svg&gapto=%C3%96sthammar%20vapen.svg&gapnamespace=6 (re @gtisza: The prop=revisions API can list from oldest to newest.) [22:49:01] Yeah, not the best-chosen name. [22:50:11] I mean, it makes sense when one think about it, it was just that my use case seems to be the opposite of what the parameter was constructed for. [22:51:02] (as I don't care what it enumerates _to_, but _from_ )