-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel #188664
Conversation
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
|
e583c70
to
5c42edc
Compare
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
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.
Confirms this fixes issue 👍🏼
@@ -131,7 +131,7 @@ function MaximumEditor({ setState, state, idPrefix }: SubProps) { | |||
} | |||
|
|||
function SecondaryMetricEditor({ accessor, idPrefix, frame, layerId, setState, state }: SubProps) { | |||
const columnName = getColumnByAccessor(accessor, frame.activeData?.[layerId].columns)?.name; | |||
const columnName = getColumnByAccessor(accessor, frame.activeData?.[layerId]?.columns)?.name; |
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.
Nice! This is why we enabled noUncheckedIndexedAccess
in @elastic/charts
elastic/elastic-charts#2006.
That way any array access is treated as a union with undefined
unless the type is an explicit tuple.
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.
Good idea! It'd be good to add it in Kibana, we had some bugs in the past caused by it.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…lastic#188664) ## Summary Fixes elastic#184544 (cherry picked from commit b7b3260)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… panel (#188664) (#188857) # Backport This will backport the following commits from `main` to `8.15`: - [[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel (#188664)](#188664) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marta Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-22T14:59:40Z","message":"[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel (#188664)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/184544","sha":"b7b3260db2b150911f283351655a721d7f16e711","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","backport:prev-minor","v8.16.0"],"title":"[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel","number":188664,"url":"https://github.com/elastic/kibana/pull/188664","mergeCommit":{"message":"[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel (#188664)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/184544","sha":"b7b3260db2b150911f283351655a721d7f16e711"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188664","number":188664,"mergeCommit":{"message":"[Dashboard][ES|QL] Unable to load page error on edit/add ES|QL panel (#188664)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/184544","sha":"b7b3260db2b150911f283351655a721d7f16e711"}}]}] BACKPORT--> Co-authored-by: Marta Bondyra <[email protected]>
Summary
Fixes #184544