Skip to content
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

Sample data usage collector es client migration #86657

Conversation

TinaHeiligers
Copy link
Contributor

Summary

Uses the new elasticsearch client in the sample_data usage collector.
Part of #86358.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@TinaHeiligers TinaHeiligers added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Telemetry v8.0.0 release_note:skip Skip the PR/issue when compiling release notes REASSIGN from Team:Core UI Deprecated label for old Core UI team v7.12.0 labels Dec 21, 2020
@TinaHeiligers TinaHeiligers changed the title Uses new esClient to fetch sample data telemetry Sample data usage collector es client migration Dec 21, 2020
@TinaHeiligers TinaHeiligers removed the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Dec 21, 2020
@TinaHeiligers TinaHeiligers marked this pull request as ready for review December 21, 2020 19:17
@TinaHeiligers TinaHeiligers requested a review from a team December 21, 2020 19:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core-ui (Team:Core UI)

@TinaHeiligers TinaHeiligers added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Dec 21, 2020
@TinaHeiligers
Copy link
Contributor Author

TinaHeiligers commented Dec 21, 2020

@elastic/kibana-core With the team changes that have happened recently, it turns out that Core actually owns most of what the Core-UI team used to own. The changes haven't been reflected in the CODEOWNERS file yet.

@TinaHeiligers TinaHeiligers requested review from Bamieh, afharo and a team and removed request for afharo and Bamieh December 21, 2020 19:35
Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the IDE auto-import got the type SearchResponse from the wrong library. Once that is fixed, it LGTM.

@@ -17,6 +17,7 @@
* under the License.
*/

import { SearchResponse } from 'elasticsearch';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be imported from the new client @elastic/elasticsearch instead

Copy link
Contributor Author

@TinaHeiligers TinaHeiligers Dec 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I change the import location, my IDE errors with Module '"../../../../../../../node_modules/@elastic/elasticsearch"' has no exported member 'SearchResponse'.ts(2305)

Importing from src/core/server works though.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Distributable file count

id before after diff
default 47142 47902 +760

History

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

@TinaHeiligers TinaHeiligers merged commit f2105c8 into elastic:master Dec 22, 2020
@TinaHeiligers TinaHeiligers deleted the sample-data-usage-collector-migration branch December 22, 2020 23:27
TinaHeiligers added a commit that referenced this pull request Dec 23, 2020
* Uses new esClient to fetch sample data telemetry

* Import SearchResponse from core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Telemetry REASSIGN from Team:Core UI Deprecated label for old Core UI team release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants