You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
graph: fix spurious error modal on page load (#2651)
Summary:
Fixes#2646, and fixes#2650 as a side effect.
I’ve gone with an additional boolean field `_datasetsFetched` rather
than making `_datasets` nullable because `_datasets` is also passed down
directly to `tf-graph-controls`, which expects a non-null array. This
seemed simpler, all things considered.
Test Plan:
1. Launch TensorBoard. Navigate to <http://localhost:6006/#graphs>.
2. Observe that there is no flash of “No graph definition files were
found” (though there is instead a brief flash of white).
3. Note that the list of graphs loads, the first graph is selected, and
the fragment updates.
4. Refresh the page. Note that the page behaves as in the initial load:
in particular, there is no error modal.
5. Change the fragment such that the run is invalid (`#graphs&run=bad`)
and note that the error modal appears without refreshing the page.
6. Refresh the page, and note that the error modal appears, and the
first graph is automatically selected and loaded underneath it.
wchargin-branch: graph-fix-error-modal
0 commit comments