Page MenuHomePhabricator

Avoid fetching language stats for all groups when Special:Translate is loaded
Closed, ResolvedPublic4 Estimated Story PointsPRODUCTION ERROR

Description

There is only a single statsbar on Special:Translate tux editor that shows the stats for a language in a group:

image.png (639×832 px, 37 KB)

But we're still loading the stats for all the groups with that language. This is not needed until the user opens the group selector.

Update the code to avoid doing loading stats for all the groups with that language.

Event Timeline

abi_ changed the task status from Open to In Progress.Feb 27 2022, 5:00 PM
abi_ triaged this task as High priority.
abi_ created this task.

Inheriting the priority from the parent issue.

Change 766312 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] Statsbar: Allow loading language stats for a specific group

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

Nikerabbit set the point value for this task to 4.Mar 1 2022, 8:17 AM
Nikerabbit changed the subtype of this task from "Task" to "Production Error".Mar 1 2022, 9:44 AM

Change 766312 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Statsbar: Allow loading language stats for a specific group

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

This is now deployed on MediaWiki.org. When the Special:Translate page loads, we only load language stats for the specific message group being translated.

image.png (1×2 px, 171 KB)

A similar request in Meta where deployment has not yet been done:

image.png (574×1 px, 122 KB)

THANKS!!
I'm not seeing a redaction in errors but I guess that's client-side caching? https://logstash.wikimedia.org/goto/bfd8fa6b06c28ce58980b9e3a93b20b9

Will check again later.

It's not deployed to metawiki yet (expected today), but even then may be difficult to measure given T303911.

This fix had significant impact on the API side (March 16th is filtered out as the number of events on that day is magnitudes higher):

image.png (716×1 px, 120 KB)