Closed Bug 1555083 Opened 6 years ago Closed 6 years ago

[Translate.Next] After submitting a suggestion or translation, the machinery tab still uses the previous strings

Categories

(Webtools Graveyard :: Pontoon, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: mathjazz)

Details

Attachments

(2 files)

Attached image immagine.png
  1. Enable "Make suggestions", make sure you're on the "MACHINERY" tab.
  2. Submit a suggestion for a string. I clicked on one of the items available in the MACHINERY tab, and pressed enter.
  3. The focus moves on the next string, but the machinery is looking for suggestions for the previous string (the one I just submitted).
Priority: -- → P3

Weird detail:

  • After submitting the first string, the one after is reusing the wrong source for machinery.
  • If I translate and move to a third string, this one is correct.
Assignee: nobody → m
Status: NEW → ASSIGNED

Findings:

  1. After translation is submitted, Machinery makes two requests: one that takes translated string as input (wrong) and one that takes the next one (correct). The latter request is made later, so it appears under the results for the former one.

  2. Duplicate requests are also made for the History and Locales tab, but for some reason only results for the next string appear in the tabs.

  3. Requests are only duplicated on Save/Suggest actions, but not on Approval.

A fix would be to unify the behaviour with History and Locales tab.

A proper fix would be to only make the requests when necessary.

This happened to me for the History tab too. After submitting a suggestion in the "restore-logins-extension" project, I saw it appear in the History tab for the next still untranslated string. I would bet on some race condition there and that the Machinery tab is more prone to the issue as it loads data also from external source like MS terminology and Google translate.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: