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
[APM] Suppress error toast when data view cannot be created #143639
Conversation
Pinging @elastic/apm-ui (Team:APM) |
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!
💚 Build Succeeded
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: |
(cherry picked from commit e363b7c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Related to: #143336
Problem
APM UI will attempt to create a data view on initial page load:
kibana/x-pack/plugins/apm/public/hooks/use_apm_data_view.ts
Lines 25 to 32 in c31c400
If the APM integration hasn't been installed, and no data has been ingested, it is not possible to create a data view and an error toast will be displayed
We don't want users to see this toast because they didn't initiate the action to create the data view
Solution
Suppress the toast