-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release-23.2: cluster-ui: fix insights page crash #120210
release-23.2: cluster-ui: fix insights page crash #120210
Conversation
When the Schema Insights Type is unitialized, the Schema Insights tab would crash because a string method was being called on `undefined`. The types are all correct, but because strict mode isn't enabled, it's not considered a type error. Now the string method is only called if the Schema Insights Type is defined. The same type issue that was fixed for `filters.schemaInsightType` was fixed for all other filters in the same file as well. Fixes: https://cockroachlabs.atlassian.net/browse/CC-27391 Release note (bug fix): Fixes intermittent page crash on the Schema Insights view.
7398253
to
1f3d096
Compare
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
This bug fix needs to be pulled into CC Console, so publishing is required. Epic: none Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM seems very low risk.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @dhartunian, @laurenbarker, and @xinhaoz)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @laurenbarker and @xinhaoz)
TFTRs! |
Backport 1/1 commits from #120137 on behalf of @laurenbarker.
/cc @cockroachdb/release
When the Schema Insights Type is uninitialized, the Schema Insights tab would crash because a string method was being called on
undefined
. The types are all correct, but because strict mode isn't enabled, it's not considered a type error.Now the string method is only called if the Schema Insights Type is defined.
Fixes: https://cockroachlabs.atlassian.net/browse/CC-27391
Release note (bug fix): Fixes intermittent page crash on the Schema Insights view.
Release justification: Without this fix, the Schema Insights page occasionally crashes and customers are unable to see any schema insights. Backporting also keeps DB Console and CC Console in sync.