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]: Avoid breaking saved objects when deleting an index pattern #34758

Closed
lukeelmers opened this issue Apr 8, 2019 · 0 comments
Labels
discuss enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0

Comments

@lukeelmers
Copy link
Member

lukeelmers commented Apr 8, 2019

Currently, deleting an Index Pattern will immediately break any Saved Objects that have stored references to that Index Pattern's ID.

Now that #28199 is merged, and we are able to look up relationships for each Saved Object, we could improve the user experience by examining all Saved Objects that would be affected by the Index Pattern's removal, and doing something like:

  • providing a more specific warning with a list of affected objects
  • offer to delete all corresponding saved objects so that you don't have objects with stale references sitting around
  • offer to rereference corresponding saved objects to another index pattern
  • figure out some sort of "undefined" or orphaned state that you could put the saved object references in, so that they would be easier to identify and rereference to a new pattern later.
  • create an advanced setting around one of the above, e.g. if a user wanted to prevent deleting index patterns by default if there were any objects referencing that ID
@lukeelmers lukeelmers added enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 :AppArch discuss labels Apr 8, 2019
@alexh97 alexh97 closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0
Projects
None yet
Development

No branches or pull requests

2 participants