pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Delay before contact person data appears in the comment field

Open mathjazz opened this issue 3 years ago • 1 comments

Since #2588, there is now a short delay after clicking "REQUEST CONTEXT or REPORT ISSUE" before the contact person's data is entered into the edit field due to the mention data loading in the background.

mathjazz avatar Aug 03 '22 09:08 mathjazz

One way to fix this would be to fetch the Contact Person data on page load.

Another approach is to make the field disabled while loading, and show a loading indicator.

mathjazz avatar Aug 03 '22 09:08 mathjazz

The right fix here would be to change the /get-users/ API to filter the results. Atm, it's sending data on all the users, and on pontoon.mozilla.org that's currently compressing down to about 900kB, which obviously takes a while to transfer.

As we only use this for the comment @-mentions, we probably shouldn't cache the data in the client at all, and instead work with some much smaller subset matching a query.

It might be possible to work around the #2834 issue separately by using a stand-in for the contact person's mention before all the data is available.

eemeli avatar May 05 '23 10:05 eemeli