forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph: fix spurious error modal on page load (tensorflow#2651)
Summary: Fixes tensorflow#2646, and fixes tensorflow#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
- Loading branch information
Showing
1 changed file
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters