[03:15:04] [[Tech]]; 193.82.243.116; /* Hh */ new section; https://meta.wikimedia.org/w/index.php?diff=23011384&oldid=23007223&rcid=22928099 [03:15:22] [[Tech]]; AntiCompositeNumber; Reverted changes by [[Special:Contributions/193.82.243.116|193.82.243.116]] ([[User talk:193.82.243.116|talk]]) to last version by AKlapper (WMF); https://meta.wikimedia.org/w/index.php?diff=23011385&oldid=23011384&rcid=22928100 [09:57:06] Is anyone particularly good with SharedDatabases for users? I'm trying to set one up but keep getting an error. [10:04:08] Anyone? [11:07:19] [[Tech]]; L10nM4st3r; /* My first java script code */ new section; https://meta.wikimedia.org/w/index.php?diff=23012739&oldid=23011385&rcid=22930628 [15:42:55] [[Tech]]; Tacsipacsi; /* Help with adding Auto-Citation in my Home Wikipedia */ Reply; https://meta.wikimedia.org/w/index.php?diff=23013486&oldid=23012739&rcid=22934099 [15:50:32] [[Tech]]; Tacsipacsi; /* My first java script code */ typos; https://meta.wikimedia.org/w/index.php?diff=23013521&oldid=23013486&rcid=22934625 [17:17:19] [[Tech]]; L10nM4st3r; /* My first java script code */ r; https://meta.wikimedia.org/w/index.php?diff=23013993&oldid=23013521&rcid=22940766 [21:14:02] [[Tech]]; 193.84.36.129; /* Ukraine */ new section; https://meta.wikimedia.org/w/index.php?diff=23014676&oldid=23013993&rcid=22959168 [21:16:59] I think there was change to the API list=users query that deployed recently, but I'm not sure how to find the details of it. Can anyone point me in the right direction? [21:21:03] can you describe the change? [21:22:56] I'm doing queries to check whether usernames are available, like this:https://meta.wikimedia.org/w/api.php?action=query&list=users&ususers=Something%20Something%20New%20Editor&usprop=cancreate&format=json&origin=* [21:23:46] Previously, the response would be something like { cancreate: "", name: "Something Something New Editor"} [21:24:14] Now the response is something like {"batchcomplete":"","query":{"users":[{"name":"Something Something New Editor","missing":"","cancreate":""}]}} [21:24:36] that's a standard API response [21:26:45] For a too similar username, the response is like this; {"batchcomplete":"","query":{"users":[{"name":"Rages0ss","missing":"","cancreateerror":[{"message":"$1","params":["The username "Rages0ss" is too similar to the following username:
  • Ragesoss
Please choose another username."],"code":"_1","type":"error"}]}]}} [21:27:24] I'm not certain, but I think the `code` in that response used to be different (ie, something meaningful) [21:28:23] maybe nothing changed recently; I think now that it was a change on my end that caused me to notice... but, the code in that last message seems like a bug. [21:29:09] For other situations (like an invalid username) the code is meaningful; {"batchcomplete":"","query":{"users":[{"name":"Ragesoss:Foo","missing":"","cancreateerror":[{"message":"noname","params":[],"code":"invaliduser","type":"error"}]}]}} [21:31:45] i think the {"batchcomplete":"","query":{"users":[{…}]}} wrapper has always been there, i'd expect to see it on any action=query&list=users request. unless by "previously" you mean like 10 years ago, maybe it has changed at some point in the past [21:31:52] the code looks like a bug [21:32:42] ah, yes... I think now that there was no change in the API, I found the bug on my side. but yeah, I think the `code: "_1"` bit for the too-similar response is a bug. [21:38:55] I'm not sure which project on Phab to use to report it. [21:39:35] I guess just API Platform [21:39:45] yeah [21:39:55] thanks much! [21:39:56] looks like this error is from the AntiSpoof extension, so you can add that too [21:40:07] will do [21:41:54] I guess I can just file it against AntiSpoof instead [21:52:20] ragesoss_: oh also, i just thought of one more thing - if you're displaying the resulting error message to the user somewhere, you'll get a nicer response if you specify &errorformat=html [21:52:29] or &errorformat=plaintext if you can't display HTML [21:52:59] I realized I filed basically the same bug 5 years ago, although it's changed very slightly since then. [21:53:08] oh haha [21:53:36] but I've fixed the recent bug on my end that made me rediscover this one. Already have it handled for displaying the response to users. [22:43:19] [[Tech]]; L10nM4st3r; /* My first java script code */ r; https://meta.wikimedia.org/w/index.php?diff=23014790&oldid=23014676&rcid=22965102