Skip to content

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.8:

Questions ?

Please refer to the Backport tool documentation

## Summary

Fixes the usage collector for the file upload plugin. According to the
git history it hasn't been working since
elastic#60418.

The saved objects repository required for retrieving telemetry data
wasn't provided, causing telemetry to fall back to
`index_creation_count: 0` after each check.

### How to test

Execute the following request in the Dev Console.

```
POST kbn:/api/telemetry/v2/clusters/_stats
{ "unencrypted": true }
```

[`mlUsage`](https://github.com/elastic/kibana/blob/9047d69d574225212996ea9dbcd15dddc607d11e/x-pack/plugins/file_upload/server/telemetry/usage_collector.ts#L36)
shouldn't be `null`.

(cherry picked from commit 57af98f)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label May 17, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) May 17, 2023 09:44
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 399 402 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 479 482 +3
total +5

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @darnautov

@kibanamachine kibanamachine merged commit 4628c55 into elastic:8.8 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants