kibana/x-pack/plugins/file_upload
Kibana Machine 4628c55bb0
[8.8] [ML] Fix the file upload telemetry (#157888) (#157969)
# Backport

This will backport the following commits from `main` to `8.8`:
- [[ML] Fix the file upload telemetry
(#157888)](https://github.com/elastic/kibana/pull/157888)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2023-05-17T09:36:58Z","message":"[ML]
Fix the file upload telemetry (#157888)\n\n## Summary\r\n\r\nFixes the
usage collector for the file upload plugin. According to the\r\ngit
history it hasn't been working
since\r\nhttps://github.com/elastic/kibana/pull/60418.\r\n\r\nThe saved
objects repository required for retrieving telemetry data\r\nwasn't
provided, causing telemetry to fall back to\r\n`index_creation_count: 0`
after each check.\r\n\r\n\r\n### How to test \r\n\r\nExecute the
following request in the Dev Console.\r\n\r\n```\r\nPOST
kbn:/api/telemetry/v2/clusters/_stats\r\n{ \"unencrypted\": true
}\r\n```\r\n\r\n\r\n[`mlUsage`](9047d69d57/x-pack/plugins/file_upload/server/telemetry/usage_collector.ts (L36))\r\nshouldn't
be
`null`.","sha":"57af98f38a535432f7f085abaa3c9e7e4f67a53a","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:File
Upload","telemetry","v8.9.0","v8.8.1"],"number":157888,"url":"https://github.com/elastic/kibana/pull/157888","mergeCommit":{"message":"[ML]
Fix the file upload telemetry (#157888)\n\n## Summary\r\n\r\nFixes the
usage collector for the file upload plugin. According to the\r\ngit
history it hasn't been working
since\r\nhttps://github.com/elastic/kibana/pull/60418.\r\n\r\nThe saved
objects repository required for retrieving telemetry data\r\nwasn't
provided, causing telemetry to fall back to\r\n`index_creation_count: 0`
after each check.\r\n\r\n\r\n### How to test \r\n\r\nExecute the
following request in the Dev Console.\r\n\r\n```\r\nPOST
kbn:/api/telemetry/v2/clusters/_stats\r\n{ \"unencrypted\": true
}\r\n```\r\n\r\n\r\n[`mlUsage`](9047d69d57/x-pack/plugins/file_upload/server/telemetry/usage_collector.ts (L36))\r\nshouldn't
be
`null`.","sha":"57af98f38a535432f7f085abaa3c9e7e4f67a53a"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157888","number":157888,"mergeCommit":{"message":"[ML]
Fix the file upload telemetry (#157888)\n\n## Summary\r\n\r\nFixes the
usage collector for the file upload plugin. According to the\r\ngit
history it hasn't been working
since\r\nhttps://github.com/elastic/kibana/pull/60418.\r\n\r\nThe saved
objects repository required for retrieving telemetry data\r\nwasn't
provided, causing telemetry to fall back to\r\n`index_creation_count: 0`
after each check.\r\n\r\n\r\n### How to test \r\n\r\nExecute the
following request in the Dev Console.\r\n\r\n```\r\nPOST
kbn:/api/telemetry/v2/clusters/_stats\r\n{ \"unencrypted\": true
}\r\n```\r\n\r\n\r\n[`mlUsage`](9047d69d57/x-pack/plugins/file_upload/server/telemetry/usage_collector.ts (L36))\r\nshouldn't
be
`null`.","sha":"57af98f38a535432f7f085abaa3c9e7e4f67a53a"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2023-05-17 03:48:22 -07:00
..
common [ML] @kbn/ml-agg-utils, @kbn/ml-is-populated-object, @kbn/ml-string-hash packages. (#132963) 2022-06-23 10:38:23 +02:00
public Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
server [8.8] [ML] Fix the file upload telemetry (#157888) (#157969) 2023-05-17 03:48:22 -07:00
jest.config.js [jest] update config files to get coverage per plugin (#111299) 2021-09-09 08:14:56 +02:00
kibana.jsonc [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00