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

Kibana displays Visualize library->empty screen when user tries to save a viz from field statistics -> explore in lens -> save to an existing dashboard or new dashboard #172410

Closed
bhavyarm opened this issue Dec 1, 2023 · 11 comments · Fixed by #172543
Assignees
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. regression Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@bhavyarm
Copy link
Contributor

bhavyarm commented Dec 1, 2023

Kibana version: 8.12.0 snapshot latest

Elasticsearch version: 8.12.0 snapshot latest

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from snapshots

Describe the bug: Kibana displays empty page when user tries to add a visualization to dashboard after creating it through field statistics -> explore in lens -> save to an existing or new dashboard

Steps to reproduce:

  1. Open discover with a dataview - open field statistics tab
  2. Pick a field which gives you the option to explore in lens and click on explore in lens
  3. Kibana takes you to lens and there do your thing and click on save and pick either a new dashboard or existing dashboard
  4. Kibana displays Visualize library -> empty screen instead of taking the user to the dashboard with the saved visualization

Please note saving to library works without any errors. Also navigating from discover side bar -> lens visualize save also works fine

Screenshots (if relevant):

no_dashboard.mp4
@bhavyarm bhavyarm added bug Fixes for quality problems that affect the customer experience regression Team:Visualizations Visualization editors, elastic-charts and infrastructure Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Dec 1, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@stratoula
Copy link
Contributor

@bhavyarm I can't replicate it in main 🤔 Can you try to replicate it with a sample dataset and share with us the exact steps you followed? 🙇‍♀️

@bhavyarm
Copy link
Contributor Author

bhavyarm commented Dec 4, 2023

@stratoula Thanks for looking at the bug. here you go.

This is on latest 8.12.0 snapshot which is from last Tuesday Nov 28th. I have upgraded to this cluster from 7.17.15.

Steps:

  1. Install sample data - I picked Kibana sample logs - go to discover
  2. click on field statistics - you will see the table populated like this
Screenshot 2023-12-04 at 9 28 08 AM 3. I clicked on bytes -> explore in lens ->which takes me to Kibana lens Screenshot 2023-12-04 at 9 29 20 AM 4. I click on save and pick new dashboard Screenshot 2023-12-04 at 9 30 13 AM 5. Now doing that action takes me to visualize library -> lens for bytes counter empty page
empty_screen.mp4

Thanks :)

@stratoula
Copy link
Contributor

I was trying from the Visualize button on the sidebar 🤦

@elastic/kibana-data-discovery this is weird. The Visualize button works as expected. I am not familiar with the implementation of the field statistics. Are you doing something different there? 🤔

@jughosta
Copy link
Contributor

jughosta commented Dec 4, 2023

@stratoula Here is the implementation from ml side: lensPlugin.navigateToPrefilledEditor

Looks like the difference is that it does not use actions.

@bhavyarm
Copy link
Contributor Author

bhavyarm commented Dec 4, 2023

This works fine in 8.11.0. Tested it again now. Cheers!

@stratoula stratoula added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. and removed blocked labels Dec 4, 2023
@stratoula
Copy link
Contributor

I can't imagine what changed in 8.12 at least from us 🤔 We will take a look

@stratoula
Copy link
Contributor

stratoula commented Dec 5, 2023

This action doesnt work as expected either 🤔 @ThomThomson did you do any changes on the navigateToEditor function during this minor? I am trying to understand what has changed and the redirection to dashboard doesnt work anymore. It worked fine in 8.11.0

image

@stratoula stratoula self-assigned this Dec 5, 2023
@stratoula stratoula added impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. and removed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Dec 5, 2023
@stratoula
Copy link
Contributor

stratoula commented Dec 5, 2023

ok I found the culprit Devon :) #167019

stratoula added a commit that referenced this issue Dec 5, 2023
… given (#172543)

## Summary

Closes #172410

This is a regression caused by
#167019.

The originatingApp on the navigateToPrefilledEditor defaults to ""
(empty string) and not undefined.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@slteksystemsllc
Copy link

Hello, have the same issue in Kibana 8.12.1 and 8.12.2.

Reading some articles at Red hat https://bugzilla.redhat.com/show_bug.cgi?id=1719733 on permission issues related to Kibana however this install has security disabled so didn't seem to be the same issue.

On a hunch I decided to create a new space without deleting anything like the .kibana indexes etc and Visualize Library now works for the new space just not for the other. This seems to have worked all though now have to recreate the dashboards etc.

Side note, dashboards were original exported from a system that was upgraded from ES 6.4 to 7.10 to 8.12.

Than exported so not sure if there are leftover garbage in the files but figured worth sharing that this fixes the blank Visualize Library issue for me. Hope it helps someone else. If anyone has any updates that would be awesome as well.

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 impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. regression Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants