Page MenuHomePhabricator

Add normalization information to the output of list=users
Open, Needs TriagePublicFeature

Description

It hard to parse the result of list=users when input names are not normalized, because the response contains normalized names but without a matching between the original names and the normalized ones. Also, the results are not necessarily in the same order as the input.

Example:
https://fr.wikipedia.org/w/api.php?action=query&list=users&usprop=editcount&ususers=Bot_de_pluie|bad[name
This returns:
{"batchcomplete":"","query":{"users":[{"name":"bad[name","invalid":""},{"userid":2640731,"name":"Bot de pluie","editcount":572388}]}}

It would be useful to include a "normalized" block in the response, like the one from prop=revisions (https://fr.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Bot_de_pluie|bad[name).