Skip to content

Conversation

@thomasneirynck
Copy link
Contributor

Closes #48790

@thomasneirynck thomasneirynck added :Telemetry release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.6.0 v8.0.0 labels Nov 20, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

}

async function getIndexPatternSavedObjects(savedObjectsClient) {
const indexPatternSavedObjects = await savedObjectsClient.find({ type: 'index-pattern' });
Copy link
Contributor

@nreese nreese Nov 21, 2019

Choose a reason for hiding this comment

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

You need to set per_page and page through results. Otherwise, you are only going to gets stats on first 20 index-patterns. https://github.com/elastic/kibana/blob/master/src/core/server/saved_objects/service/lib/repository.ts#L417

https://github.com/elastic/kibana/blob/master/src/core/server/saved_objects/service/lib/repository.ts#L466

The same is true when fetching map saved objects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aha, didn't know that, thanks!

Let's address in separate PR #51345

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM
code review

Copy link
Contributor

@kindsun kindsun left a comment

Choose a reason for hiding this comment

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

nice addition. lgtm!

  • code review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Telemetry release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Telemetry] [Maps] Count index patterns with geo_shape or geo_point fields

5 participants