-
Notifications
You must be signed in to change notification settings - Fork 3k
bug/69643 Documents: session/authentication error on page reload #21551
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
bug/69643 Documents: session/authentication error on page reload #21551
Conversation
| headers: { | ||
| Accept: 'text/vnd.turbo-stream.html', | ||
| 'X-Authentication-Scheme': 'Session', | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should switch to using the central TurboRequestService, as it already has this special header + stream update functionality. I prefer to do this change later, on dev.
| // Delay setting connection error to avoid flickering on brief disconnects | ||
| setTimeout(() => { | ||
| setConnectionError(true); | ||
| }, 500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure this timeout value will stick, or whether it's the best approach- oddly enough I was unable to reproduce the disconnect notice locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed with @brunopagno, introducing an arbitrary delay opens the risk of losing data/content that is added within the delay period; we need a more complete solution that captures an intermediate reconnection/retry state before failure (connectionError) where the editor is potentially placed in a read-only state.
0721150 to
c95c9c5
Compare
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
brunopagno
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the way 🚀
Ticket
https://community.openproject.org/wp/69643
What are you trying to accomplish?
On reload, an error is swiftly shown on the page that collaboration is not working (although it disappears after the page is fully reloaded)bug/69643 Documents: session/authentication error on page reload #21551 (comment)Screenshots
What approach did you choose and why?
See: #18952
Merge checklist