Closed Bug 1578155 Opened 5 years ago Closed 5 years ago

TM doesn't always return best matches

Categories

(Webtools Graveyard :: Pontoon, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mathjazz, Assigned: mathjazz)

Details

Attachments

(1 file)

We determining the best matches for the Translation Memory response, we first sort the list of candidates by quality, and then map it to a dict to prevent duplicates in response.

But that way we lose the sorting order from the step before, which can prevent the highest quality candidates to be picked.

The code is here:
https://github.com/mozilla/pontoon/blob/2346e09c916b42c628bed59f4a8fd6e03a33a18d/pontoon/machinery/views.py#L82

We should instead order entries by quality in the later step.

Status: ASSIGNED → RESOLVED
Closed: 5 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: