This bug causes a bunch of log spam FAILED_PRECONDITION: Could not resolve 'sourceId': no variable exists with name 'text'
The issue is if the user does not have Close panels on disconnect enabled and the server is restarted, dh.ui has stale data in the pluginDataMap that never gets cleared. It tries to load the widget on every page load even if there is no panel associated with it.
I think we are trying to load every widget on page load and aren't checking or don't know if there are any panels associated with the widget.
Steps to reproduce
Open a clean browser window (incognito is easiest) and open Deephaven
In the console overflow menu, uncheck Close panels on disconnect
Run this Python code
from deephaven import ui
text = ui.text("Test")
Restart the core server.
Reload the page (with the now blank panel created by the above code still open)
(Expected/Actual results 1 here)
Close the panel
Reload the page again
(Expected/Actual results 2 here)
Expected results
(Step 6) Error resolving variable in the console. Error on the panel
(Step 9) No error printed to the console.
Actual results
(Step 6) No error on the panel. Error resolving variable in the console.
Description
This bug causes a bunch of log spam
FAILED_PRECONDITION: Could not resolve 'sourceId': no variable exists with name 'text'
The issue is if the user does not have
Close panels on disconnect
enabled and the server is restarted, dh.ui has stale data in thepluginDataMap
that never gets cleared. It tries to load the widget on every page load even if there is no panel associated with it.I think we are trying to load every widget on page load and aren't checking or don't know if there are any panels associated with the widget.
Steps to reproduce
Close panels on disconnect
Expected results
Actual results
Versions
Deephaven UI: 0.14.0