Page MenuHomePhabricator

Consultations Stats tool is not finding everyone (different, smaller number of participants each time)
Closed, ResolvedPublic

Assigned To
Authored By
WhatamIdoing
Aug 1 2026, 11:08 PM
Project Tags
Referenced Files
Restricted File
Aug 3 2026, 8:26 AM

Description

Steps to reproduce:

  1. Click on https://consultation-stats.toolforge.org/?wiki=meta.wikimedia.org&page=Requests+for+comment%2FArtificial+intelligence+policy
  2. Note how many people it claims has participated.
  3. Refresh the page.
  4. See a different number.

It should be finding ~174 editors. Instead, it mostly finds 31 to 38 editors for me today.

Event Timeline

Nemoralis subscribed.

Note: Tool author no longer works for the WMF

samuelguebo changed the task status from Open to In Progress.Aug 3 2026, 7:35 AM
samuelguebo claimed this task.

Hey @WhatamIdoing, the inconsistent numbers seem to be caused by some API rate limiting. I've added two changes that should help:

  • I limited concurrent API requests to 3, which aligns with Wikimedia API rate limit guidance.
  • I've added a 1-hour caching mechanism, and the possibility to force refresh the data if needed.

{F97000879}

Both mean the first visit will take a bit more time than usual to pull the data, but subsequent visits should be faster, and cause less strain on the APIs.

Kindly let me know if the cache needs a different time window than 1 hour, or if you come across some issues. Otherwise, feel free to resolve the issue.

Thank you, @samuelguebo. It's a bit slower (less than a minute) but it gets the right answer. I don't need it to be very quick.

Also, thank you for making this tool. I have used it multiple times and always appreciate it.

Thank you, @samuelguebo. It's a bit slower (less than a minute) but it gets the right answer. I don't need it to be very quick.

Also, thank you for making this tool. I have used it multiple times and always appreciate it.

Thanks for letting me know, @WhatamIdoing. Feel free to file a ticket if you come across anything else or have ideas of improvements.