Skip to content

[index patterns] Fallback to id if title does not exist#14302

Merged
jbudz merged 3 commits intoelastic:5.6from
jbudz:issues/14267
Oct 4, 2017
Merged

[index patterns] Fallback to id if title does not exist#14302
jbudz merged 3 commits intoelastic:5.6from
jbudz:issues/14267

Conversation

@jbudz
Copy link
Contributor

@jbudz jbudz commented Oct 4, 2017

Currently (5.6+) patterns sent to elasticsearch are pulling from the title field in a saved object. In prior versions of the kibana index, we pulled the pattern from the _id field. For older versions of .kibana that don't have a title field, we set title in memory to be equal to _id. We'll need a more robust versioning fix in the future.

Closes #14267

@tylersmalley
Copy link
Member

Let's also get a unit test so we're not burned by this again.

Copy link
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

LGTM

@jbudz
Copy link
Contributor Author

jbudz commented Oct 4, 2017

Working on a forward port

@jbudz
Copy link
Contributor Author

jbudz commented Oct 5, 2017

Nevermind, no forward port needed. Looks like it was lost in the backport of #12794. On the plus side the code is coincidentally the exact same.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants