[Vega] Add vega maps statistics to usage collector#78546
[Vega] Add vega maps statistics to usage collector#78546alexwizp merged 9 commits intoelastic:masterfrom
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.
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.
LGTM, checked out locally, works well
|
|
||
| const getDefaultVegaVisualizations = (home: UsageCollectorDependencies['home']) => { | ||
| const titles: string[] = []; | ||
| const sampleDataSets = home?.sampleData.getSampleDatasets() ?? []; |
stratoula
left a comment
There was a problem hiding this comment.
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