Inaccuracies with post count stats on User page

AI-generated summary

Users reported inaccuracies in the post count statistics on the User page, specifically when filtering by /users?order=post_count&period=monthly. HAWK observed that the list includes users with replies recorded for the period who actually made no posts within that timeframe, citing an example of a user with a reply logged for July 31–August 31 but whose last post was in March. codinghorror acknowledged this as a potential bug, especially if the only post falls outside the date range, and requested further pattern identification. pfaffman noted similar questionable statistics recently, suggesting that stats might not rebuild correctly after an upgrade or may fail to update, leaving old data. Mittineague confirmed that newly joined members sometimes do not appear on the User page immediately due to a once-daily Sidekiq job. While Mittineague found the Admin → Users → Active and Admin → Reports → Visits sections reliable, they highlighted persistent issues with the Users page, sharing screenshots of discrepancies where only four members logged in locally, yet the stats appeared inconsistent. Despite multiple investigations, Mittineague has been unable to pin down the root cause of these data reliability issues.

/users?order=post_count&period=monthly implies that it displays all users that made a post in the last month, ordered by post count.

If I scroll down to the end of the list there are users with replies logged for the period, that didn’t actually make any.

Here is an example: (1 reply recorded in the period of Jul 31 - Aug 31, last post actually back in March).

This user has never responded to a PM and has no flags.

Am I misunderstanding the report, or is the data unreliable?

3 إعجابات

Possibly a bug, particularly if the only post is out of date range. Let us know if you suss out any other patterns here.

إعجابَين (2)

I noticed some similar queetionable stats a week or so ago. Maybe they don’t get rebuilt right after an upgrade? Or sometimes it fails for some reason and old stats stay around?

I know newly joined members don’t make it into the User page for a while. AFAIK a once-daily sidekiq job.

The Admin → Users → Active and Admin → Reports → Visits look reliable. I am certain only 4 “members” logged in to my localhost dev site during the past week (in an attempt to repro multiple Notifications).

But the Users page has issues that I’ve looked into more than once but as of yet haven’t been able to get any solid leads let alone pin down.