Page MenuHomePhabricator

Dropdown on Special:ExportTranslations is very slow when there are a lot of translatable pages
Closed, ResolvedPublic4 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

Several seconds pass until the dropdown opens. I tested in Firefox and Chrome on a fairly fast and modern laptop with Linux.

What should have happened instead?:

The dropdown should appear instantly.

Event Timeline

Nikerabbit moved this task from Backlog to tux on the MediaWiki-extensions-Translate board.

@Nikerabbit why did you move this to the Tux column? I don’t think it has anything to do with Tux; it’s a simple OOUI select on a page other than Special:Translate.

Treating TUX as the translation interface generally, for lack of a better column. Export used to be part of Special:Translate, though now it's a separate special page.

Then maybe a better column should be created, for example “Miscellaneous special pages”? I find this confusing.

Too many columns is not helpful either. In general, I find that the cost-benefit ratio of managing Phabricator projects boards goes negative very quickly, so I think this is good enough.

Wangombe changed the task status from Open to In Progress.Mar 30 2023, 10:57 AM
Wangombe claimed this task.
Wangombe subscribed.

To solve this issue, we can use the current implementation of the input in Special:MessageGroupStats to search for a 'message group or prefix' as seen below. Instead of fetching all the groups at once, we can debounce the typing action of the user against the API to fetch whatever matches the search query. This should help with two things:

  1. Feedback to the user
  2. Faster response time to the searching action

Screen Shot 2023-03-30 at 13.04.43 PM.png (379×1 px, 50 KB)

Screen Shot 2023-03-30 at 13.55.03 PM.png (519×751 px, 46 KB)

Nikerabbit set the point value for this task to 4.Apr 4 2023, 12:14 PM

Change 905949 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] Special:ExportTranslations: EntitySelector to select group

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

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

[mediawiki/extensions/Translate@master] entity.selector: Show entity label if multiple entities are configured

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

Change 908218 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] entity.selector: Show entity label if multiple entities are configured

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

Change 905949 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Special:ExportTranslations: EntitySelector to select group

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

This has been deployed and is now available on translatewiki.net.

Change 909988 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] Special:ExportTranslations: EntitySelector to select group

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

Change 909988 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Special:ExportTranslations: Remove CSS class for entity selector

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