Skip to content

Handle ES _default_ mapping type (#14934) - #15432

Merged
tylersmalley merged 3 commits into
elastic:masterfrom
cdaringe:fix/handle-default-es-mapping
Dec 12, 2017
Merged

tylersmalley merged 3 commits into
elastic:masterfrom
cdaringe:fix/handle-default-es-mapping

Conversation

@cdaringe

@cdaringe cdaringe commented Dec 5, 2017 •

Copy link
Copy Markdown
Contributor

problem

solution

  • disregard '_default_' when checking mapping types

@elasticmachine

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@Bargs Bargs added Team:Operations Kibana-Operations Team review labels Dec 6, 2017
@tylersmalley

Copy link
Copy Markdown
Member

Jenkins, test it

Comment thread src/server/mappings/lib/get_types.js Outdated
*/
export function getTypes(mappings) {
return Object.keys(mappings);
return Object.keys(mappings).filter(type => !type.match(/^_default_$/));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A string comparison would probably be better here.

return Object.keys(mappings).filter(type => type !== '_default_');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure thing. pushed.

@tylersmalley tylersmalley changed the title fix(getTypes): handle ES _default_ mapping names (#14934) Handle ES _default_ mapping type (#14934) Dec 12, 2017
@tylersmalley
tylersmalley merged commit 273e4f8 into elastic:master Dec 12, 2017
@tylersmalley tylersmalley added v6.2.0 v7.0.0 v6.0.2 v6.1.1 bug Fixes for quality problems that affect the customer experience and removed v6.2.0 labels Dec 12, 2017
@tylersmalley

Copy link
Copy Markdown
Member

6.2/6.x: 25bf57a
6.1.1: 213265f
6.0.2: 65c7baf

@cdaringe
cdaringe deleted the fix/handle-default-es-mapping branch December 12, 2017 18:36
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience review Team:Operations Kibana-Operations Team v6.1.1 v6.2.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants