There is a serious problem with badge counts on meta sites as returned by
the /users/{ids}/associated
route.
Consider this user (chosen for high volume of meta activity).
On Meta Stack Overflow, he currently has 80 badges:
But the /associated route reports that he has no badges for that site! :
...
{
"badge_counts": {
"bronze": 0,
"silver": 0,
"gold": 0
},
"question_count": 19,
"answer_count": 43,
"reputation": 14531,
"user_id": 1849664,
"site_url": "http://meta.stackoverflow.com"
},
...
The badges are not just zeroed out, however, as other sites do report some badges, but never the correct amount.
For example, the API reports:
"badge_counts": {
"bronze": 1,
"silver": 0,
"gold": 0
},
for Mathematics Meta, whereas this user currently has two badges there.
Spot checks suggest that the badge counts are correct for the main sites, just not for Meta sites.
Finally, other API methods return the correct badge statistics. For example, the /users/{ids}
route returns:
"badge_counts": {
"bronze": 51,
"silver": 27,
"gold": 2
},
"answer_count": 43,
"question_count": 19,
"reputation": 14531,
"user_id": 1849664,
"display_name": "Undo"
for that user on Meta Stack Overflow.
Related: