Closed Bug 1539228 Opened 7 months ago Closed 5 months ago

[Translate.Next] Make sure requested entity is loaded

Categories

(Webtools :: Pontoon, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: mathjazz)

Details

(Whiteboard: tn-testing-2)

Attachments

(1 file)

When a user follows a link to the Translate page and that link has an entity parameter, if that entity is not in the first batch of loaded entities, it will not be selected nor loaded in the Metadata. In order to do that, we have to make sure that we download entities until that specific one shows up in the list.

There might be something smarter to do though, I'll have to investigate how it's done in Translate.current.

That might be a hard problem to solve properly, which we already track in bug 1370200.

If that's indeed the case, we should just follow the lead of Translate.Current and append the selected entity to the first batch.

When we solve this, we also need to add a notification when the entity cannot be found.

Reference code in Translate.current: https://github.com/mozilla/pontoon/blob/67fc25992729d52e98c3767c286abab367771a24/pontoon/base/static/js/translate.js#L3567

See bug 1500871 about the notification system.

Whiteboard: tn-testing-2
Assignee: nobody → m
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.