-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messages for the next page appear on the current one because of prefetching #7713
Comments
Looks like it's from a package. weblate/weblate/utils/messages.py Lines 39 to 42 in 6f2fd4e
weblate/weblate/utils/messages.py Line 25 in 6f2fd4e
I thought we could maybe bail inside the |
That would just silently discard the message... But the message itself is not the problem, this also deletes cached search results from the session, so the search won't be reproducible anymore, what could break translating the last string (if the search would now return less results). weblate/weblate/trans/views/edit.py Lines 561 to 564 in 563f0ce
I think disabling prefetching is the safest way to go for now, I will revert 4222059. |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Oh.... Right... Forgot that the prefetched page actually needs to be used. 😅 |
Describe the issue
In #7565 we added next page prefetching, and it appears to affect the current page in a weird way. See reproduction.
I already tried
Steps to reproduce the behavior
/translate
, to the last page of the search (e.g. https://hosted.weblate.org/translate/weblate/application/en/?&offset=2724)Instead of step 3 you can even open any hosted Weblate page in a new tab, it will show the message, lol.
Expected behavior
Messages only appear for the pages they're supposed to be displayed on.
Screenshots
Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
weblate/weblate/templates/base.html
Line 23 in 4222059
weblate/weblate/trans/views/edit.py
Lines 560 to 561 in 4b2e079
The text was updated successfully, but these errors were encountered: