Repository navigation
Dashboard: the home page loads each section on its own - #309
Merged
Merged
Conversation
The home page loaded its sections in one chain of awaits. When one request failed, the sections after it were never loaded and kept their placeholders (Lock holders, Registered Functions "No data available"), and the live updates registered after them were never set up. Each section now loads in its own try/catch, in the same order. The failed one keeps its placeholder; its error is still shown by the HTTP layer.
…not HTTP errors With each section loading on its own, the live updates are registered even when the next-run or options section failed to load. Their callbacks now update a section only when it has data; the next run still reaches the dashboard store. An error that is not an HTTP error (a bug while shaping the data) is logged instead of being dropped.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The home page loaded its sections in one chain of awaits. When one request failed, the sections after it were never loaded and kept their placeholders, and the live updates registered after them were never set up: with the past-week statistics request failing, Lock holders stayed a placeholder and Registered Functions said "No data available" although six functions were registered.
Change
What does not change
Testing
vue-tsc --buildclean, no new lint messages, every .NET test project passes, the scenario solution builds.