-
Notifications
You must be signed in to change notification settings - Fork 31
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
Handle reconnect auth fail in the embed-widget app #1256
Comments
Update: After trying and testing different approaches, feel that the approach where I add an event listener and corresponding functions to handle the Auth Failure event in I made code changes as shown below, and tested as discussed with @mattrunyon by clicking "Work Offline" to go offline -> Restarting the Deephaven server -> clicking "Work Offline" again to go online. This is seeming to work, but there are a couple of issues: a. Adding the logic here would make most of the logic from lines 725 - 763 of b. The modal that appears in the embed-widget is similar to the one that we see in the main code-studio, but there are styling differences, not sure why? c. The refresh here works but then the variable does not persist, I know that there are workarounds with this with Application Mode and initializing server state, but I feel like a solution should not be contingent upon using a specific mode. @mofojed @mattrunyon any thoughts? Some of the code changes: Difference in Modal Styling: |
@AkshatJawne |
This makes sense, I just wanted to make sure that my changes were not taking the wrong side of a design tradeoff that may have been made when creating the
Yes, it appears so, will take a deeper dive here
Yes I am, that was the way that @mattrunyon and I could reproduce the issue. But yeah, the creation of the new server instance having that behaviour makes sense, and if it is unavoidable, then no issues on that front. Will continue working on this and will update on progress, thanks for the comment @mofojed |
You could restart the server and then recreate the variable in a separate browser. Or run the server using app mode to create it at startup. Unless there's another easy way to simulate the auth reconnect failure. @mofojed |
Resolves #1256 **Changes Implemented:** - Refactored disconnection, shutdown, and auth fail handling logic to now be `ConnectionBootstrap` in order to properly handle auth fail event in the `embed-widget` **Visual of modal that appears on auth fail:** ![image](https://github.com/deephaven/web-client-ui/assets/69530774/a0874c7e-a4f3-40fb-ad1f-23fe75012b1f)
Description
Right now if the JS API throws a reconnect auth fail error, the embed-widget (embed-grid/embed-chart deprecated) packages do not handle it. The change #1149 to wire up the reconnect auth fail event only added it to
code-studio
package, so theembed-widget
package would not react the same.Possibly add it to
AppBootstrap
or some other common component between the three packages.Follow these steps to reproduce an auth failure:
The text was updated successfully, but these errors were encountered: