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

Discover breaks when index pattern gets deleted #62269

Closed
flash1293 opened this issue Apr 2, 2020 · 2 comments · Fixed by #63329
Closed

Discover breaks when index pattern gets deleted #62269

flash1293 opened this issue Apr 2, 2020 · 2 comments · Fixed by #63329
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

Kibana version: master, 7.7.0

Elasticsearch version: master, 7.7.0

Describe the bug: When discover is accessed and the last used index pattern is not available anymore, an empty page gets rendered.

Steps to reproduce:

  1. Go to discover, change the index pattern
  2. Go to management, delete the index pattern you selected
  3. Go back to discover
  4. Empty screen

Expected behavior:

Should switch to the default index pattern and show a toast.

Any additional context:

I haven't tested but this definitely used to work at some point, there is code in place to handle it: https://github.com/elastic/kibana/blob/master/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js#L140

I suspect some call is throwing an expecting and preventing the execution of this code path (maybe https://github.com/elastic/kibana/blob/master/src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js#L138).

@flash1293 flash1293 added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Apr 2, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@kertal
Copy link
Member

kertal commented Apr 6, 2020

this definitely worked a a while ago, thanks, will take care of it

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 Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants