[Translate.Next] Make sure requested entity is loaded
Categories
(Webtools Graveyard :: Pontoon, enhancement, P3)
Tracking
(Not tracked)
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.
Assignee | ||
Comment 1•5 years ago
|
||
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.
Reporter | ||
Comment 2•5 years ago
|
||
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.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Updated•3 years ago
|
Description
•