-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Allow creating a dashboard with ES|QL chart even when there are no dataviews #196658
Conversation
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7160[✅] test/functional/apps/dashboard/group6/config.ts: 25/25 tests passed. |
Pinging @elastic/kibana-presentation (Team:Presentation) |
src/plugins/dashboard/public/dashboard_app/no_data/dashboard_app_no_data.tsx
Outdated
Show resolved
Hide resolved
src/plugins/dashboard/public/dashboard_app/no_data/dashboard_app_no_data.tsx
Show resolved
Hide resolved
src/plugins/dashboard/public/dashboard_app/no_data/dashboard_app_no_data.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
|
||
const onTryESQL = useCallback(async () => { | ||
abortController?.abort(); | ||
if (lensHelpersAsync.value && isMounted()) { |
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.
Thanks for adding isMounted
check. isMounted
check needs to happen after async functions, so after getESQLQueryColumns
instead of at the beginning of the function.
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.
Thinking about this more, maybe the isMounted check is not even needed since getESQLQueryColumns
request is canceled on unmount.
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.
yes I wanted to tell you the same tbh, I am removing this
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.
}); | ||
} | ||
} catch (error) { | ||
coreServices.notifications.toasts.addWarning( |
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.
Toast should not be displayed if error is aborted request
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 catch, done a6da3da
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.
kibana-presentation changes LGTM
code review, tested in chrome
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11474367790 |
…hen there are no dataviews (elastic#196658) ## Summary Closes elastic#176159 Try ES|QL button now navigates to dashboard with an ES|QL chart embedded. ![meow](https://github.com/user-attachments/assets/47ae19f5-1ed2-49f1-aceb-1f7287f58251) ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit af139b4)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…even when there are no dataviews (#196658) (#197366) # Backport This will backport the following commits from `main` to `8.x`: - [[Dashboard][ES|QL] Allow creating a dashboard with ES|QL chart even when there are no dataviews (#196658)](#196658) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2024-10-23T06:32:01Z","message":"[Dashboard][ES|QL] Allow creating a dashboard with ES|QL chart even when there are no dataviews (#196658)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/176159\r\n\r\nTry ES|QL button now navigates to dashboard with an ES|QL chart\r\nembedded.\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/47ae19f5-1ed2-49f1-aceb-1f7287f58251)\r\n\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"af139b4038ad758ad0896492bf7aea0418334ef4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Feature:Dashboard","Team:Presentation","loe:small","impact:medium","v9.0.0","Feature:ES|QL","backport:version","v8.17.0"],"title":"[Dashboard][ES|QL] Allow creating a dashboard with ES|QL chart even when there are no dataviews","number":196658,"url":"https://github.com/elastic/kibana/pull/196658","mergeCommit":{"message":"[Dashboard][ES|QL] Allow creating a dashboard with ES|QL chart even when there are no dataviews (#196658)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/176159\r\n\r\nTry ES|QL button now navigates to dashboard with an ES|QL chart\r\nembedded.\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/47ae19f5-1ed2-49f1-aceb-1f7287f58251)\r\n\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"af139b4038ad758ad0896492bf7aea0418334ef4"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196658","number":196658,"mergeCommit":{"message":"[Dashboard][ES|QL] Allow creating a dashboard with ES|QL chart even when there are no dataviews (#196658)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/176159\r\n\r\nTry ES|QL button now navigates to dashboard with an ES|QL chart\r\nembedded.\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/47ae19f5-1ed2-49f1-aceb-1f7287f58251)\r\n\r\n\r\n### Checklist\r\n\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"af139b4038ad758ad0896492bf7aea0418334ef4"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Summary
Closes #176159
Try ES|QL button now navigates to dashboard with an ES|QL chart embedded.
Checklist