Page MenuHomePhabricator

UserInfoCard: Update articles count to show 1000+ if the count is 1000
Closed, ResolvedPublic

Description

Summary

We updated the mechanism for calculating the number of articles created by a user in T394785: Slow queries on finding articles created by a given user in GrowthExperiments. The maximum number we will return is 1000 (based on $wgGEUserImpactMaxEdits). We should show "1000+" in the UI instead of "1000".

Technical notes

  • Note that GEUserImpactMaxEdits may get updated to a higher value at some point, so don't hardcode 1000, but instead consult the value of $wgGEUserImpactMaxEdits.

*The business logic should be: if the API returns a value equaling $wgGEUserImpactMaxEdits, then show {$wgGEUserImpactMaxEdits}+ in the UI, instead of the raw value

Acceptance criteria

  • Users with >= 1000 articles will have 1000+ shown in the UserInfoCard

Details

Event Timeline

Mimurawil changed the task status from Open to In Progress.May 26 2025, 8:11 PM

Change #1150783 had a related patch set uploaded (by Mimurawil; author: Mimurawil):

[mediawiki/extensions/CheckUser@master] Update article counts display to show 1000+

https://gerrit.wikimedia.org/r/1150783

@kostajh, should we assume a fallback value (ie: 1000) in case $wgGEUserImpactMaxEdits is not available?

Change #1150783 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Update article counts display to show 1000+

https://gerrit.wikimedia.org/r/1150783