-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Vega] Add vega maps statistics to usage collector #78546
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
Conversation
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
|
@alexwizp code is LGTM and it works correctly but we would also like to exclude the vega sample data visualizations from the stats in order to have more accurate results. |
sulemanof
left a comment
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.
Overall LGTM, checked locally and works as expected, left comments.
The only concern is about using the hardcoded list of sample dataset excludedFromStatsVisualizations.
Could you please check if we could get this list from the home plugin contract? It seems it's possible both from setup & start as home.sampleData.getSampleDatasets()
src/plugins/vis_type_vega/server/usage_collector/get_usage_collector.ts
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
sulemanof
left a comment
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, checked out locally, works well
|
|
||
| const getDefaultVegaVisualizations = (home: UsageCollectorDependencies['home']) => { | ||
| const titles: string[] = []; | ||
| const sampleDataSets = home?.sampleData.getSampleDatasets() ?? []; |
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!
stratoula
left a comment
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, tested locally 👏
💚 Build SucceededMetrics [docs]distributable file count
History
To update your PR or re-run it, just comment with: |
* telemetry * [Vega] Add vega maps statistics to usage collector Closes: elastic#78269 * add tests * ignore sample data visualizations * fix PR comment * get default vega vis from home plugin * match_phrase doesn't work for full text search Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* telemetry * [Vega] Add vega maps statistics to usage collector Closes: #78269 * add tests * ignore sample data visualizations * fix PR comment * get default vega vis from home plugin * match_phrase doesn't work for full text search Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Closes: #78269
Summary
Create a new collector (vis_type_vega) to the vega plugin
This collector collects the following data:
Screens
Checklist
Delete any items that are not applicable to this PR.
For maintainers