Repository navigation
Fix/700 monitor html type error - #794
Open
alexeyMishinDI wants to merge 3 commits into
Open
alexeyMishinDI wants to merge 3 commits into
alexeyMishinDI wants to merge 3 commits into
Conversation
This branch has not been deployed
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.
Problem
Opening the monitor HTML UI throws
'type. On connect,startsubscribes the page toheartbeat,logmsgandlmchartvia.html.wssub..html.addthen builds an empty table copy of each subscription (0#v), butlmchartis a function, so it errors.startnever sends the initial data and the page loads blank.Fix
One line in
.html.add. It only builds the empty copy for tables (98h) and returns()for anything else. Subscription registration is unchanged, so all three subscriptions stay in place and the error chart keeps updating live. The return value isn't used bywssubanyway.This takes a different approach from #708, keeping the
lmchartsubscription so live chart updates still reach the page.Testing
ERRlog messages.tests/html/(tests/html/run.sh): 6 tests. All pass with the fix, and 2 fail with'typeon the old code.Docs
docs/visualisation.md: noted that a subscription name doesn't have to be a table.