-
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
[Discover] Track adhoc data views usage #144244
Conversation
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
trackUiMetric(METRIC_TYPE.CLICK, ADHOC_DATA_VIEW_CLICK_EVENT, adHocDataViewList.length); | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [adHocDataViewList]); |
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.
I guess we should send an event only if current data view on Discover is ad-hoc, not for the available list of them. On Lens page it's a bit different: several data views can be active and referenced in vis layers.
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.
Changed.
@elasticmachine merge upstream |
merge conflict between base and head |
…dhoc-usage # Conflicts: # src/plugins/discover/public/application/main/hooks/use_discover_state.ts
@elasticmachine merge upstream |
src/plugins/discover/public/application/main/hooks/use_adhoc_data_views.ts
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @dimaanj |
## Summary Closes #141090 This PR enabled metrics for adhoc data views usage in Discover. Co-authored-by: Julia Rechkunova <[email protected]> (cherry picked from commit 2454fd0)
💚 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 |
# Backport This will backport the following commits from `main` to `8.6`: - [[Discover] Track adhoc data views usage (#144244)](#144244) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dmitry Tomashevich","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-17T11:29:35Z","message":"[Discover] Track adhoc data views usage (#144244)\n\n## Summary\r\n\r\nCloses #141090\r\n\r\nThis PR enabled metrics for adhoc data views usage in Discover.\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"2454fd01b08767b31f25fe4674ac92b9633606f6","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","auto-backport","Team:DataDiscovery","v8.6.0","v8.7.0"],"number":144244,"url":"https://github.com/elastic/kibana/pull/144244","mergeCommit":{"message":"[Discover] Track adhoc data views usage (#144244)\n\n## Summary\r\n\r\nCloses #141090\r\n\r\nThis PR enabled metrics for adhoc data views usage in Discover.\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"2454fd01b08767b31f25fe4674ac92b9633606f6"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144244","number":144244,"mergeCommit":{"message":"[Discover] Track adhoc data views usage (#144244)\n\n## Summary\r\n\r\nCloses #141090\r\n\r\nThis PR enabled metrics for adhoc data views usage in Discover.\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"2454fd01b08767b31f25fe4674ac92b9633606f6"}}]}] BACKPORT--> Co-authored-by: Dmitry Tomashevich <[email protected]>
Summary
Closes #141090
This PR enabled metrics for adhoc data views usage in Discover.