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

[Index Patterns] Better alias handling #110608

Closed
afharo opened this issue Aug 31, 2021 · 3 comments
Closed

[Index Patterns] Better alias handling #110608

afharo opened this issue Aug 31, 2021 · 3 comments
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort

Comments

@afharo
Copy link
Member

afharo commented Aug 31, 2021

Describe the feature:
When creating an Index Pattern, Kibana automatically adds the trailing * as the user starts typing.
create-index-pattern

Ideally, Kibana should show a warning when the index pattern matches both: aliases and indices. Or it could even stop the automatic addition of the * if the name matches an alias (allowing the user to explicitly add it, though).

Describe a specific use case for the feature:
This could cause unexpected behaviours in data models where the alias points to the latest-most-recent index, but the user keeps the old indices for recovery purposes.

i.e.:

  1. The user has the index my-index-001 containing all the documents, and the alias my-index is pointing to my-index-001.
  2. The user needs a reindex (i.e.: due to a mappings update) and they create my-index-002. When the reindex is done, they point the alias to the new index, but they don't delete my-index-001 just in case they need to rollback.

When the index pattern is my-index*, it returns duplicated results until the old index is removed. IMO, Kibana should make it more obvious to the the user that this may occur when including an alias and an index in the same index-pattern.

What do you think?

@afharo afharo added Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:AppServices labels Aug 31, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Sep 10, 2021
@mattkime
Copy link
Contributor

mattkime commented Oct 5, 2021

@afharo How common is this case? Do any of the solutions make this likely?

I think we need to do a better job communicating which indices are matched by a data view - #72665 - but its unclear to me if its worthwhile to modify the UI for creating index pattern strings.

@exalate-issue-sync exalate-issue-sync bot added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort labels Oct 5, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:small Small Level of Effort and removed loe:medium Medium Level of Effort labels Jan 12, 2022
@ppisljar
Copy link
Member

ppisljar commented Aug 8, 2022

Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment.

@ppisljar ppisljar closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort
Projects
None yet
Development

No branches or pull requests

4 participants