Page MenuHomePhabricator

Translating page in Special:Translate displays empty messages after filtering
Closed, ResolvedPublic

Description

Intention:
Update message translation after filtering results

Steps to Reproduce:
See note below if using another example.

  1. Go to a Special:Translate for a translatable page (e.g. https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-How+to+report+a+bug&language=sv&action=page&filter=)
  2. Filter the results (using "step" for above link)
  3. Select any message
  4. Click Skip to next
  5. Make a null edit (add space, remove space, press save)
  6. Remove filter word and reload page

Actual Results:
After 4/5: Whole message (source+translation) is replaced by a blank box
After 6: Messages reappear

Expected Results:
After 4/5: Messages appear as before step 3

Reproducible: Sometimes

Could not reproduce this on a filtered search on translatewiki. Might be linked specifically to translated pages (similar to bug #60952).

The bug does not occur for the first and last messages on the page (if included in the filtered results) or when the filtered results are sufficiently many to trigger the page to scroll down (e.g. filter by "bug" in the example url).

Details

Reference
bz60963

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:02 AM
bzimport set Reference to bz60963.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 14506
Screenshot showing empty messages

Attached:

Screenshot_from_2014-02-06_14:26:12.png (953×1 px, 84 KB)

pr4tiklahoti wrote:

Screenshot when filtered on 'bug'

I was able to reproduce the bug. But when I filtered on 'bug', I could see this weird behaviour. One of the message appears in the midway and then again, there are empty messages. The messages are thus empty when filtered on 'bug', which returned me 15 results.

Attached:

Sreenshot_when_filtered_on_bug_.png (768×1 px, 47 KB)

Seems to be worst today:

Could not reproduce this on a filtered search on translatewiki. Might be linked specifically to translated pages (similar to bug #60952).

I can reproduce on Translatewiki.net, so it is not only related to translated pages only.

The bug does not occur […] when the filtered results are sufficiently many to trigger the page to scroll down (e.g. filter by "bug" in the example url).

Like pr4tiklahoti, I can reproduce even if a the page scrolls down while saving.

abi_ claimed this task.
abi_ subscribed.

I cannot reproduce this anymore. I believe this was fixed as part of T270819: When translating in Page mode, modifying and publishing a message causes its to become empty.