-
Notifications
You must be signed in to change notification settings - Fork 894
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
[BUG] Cannot open visualisations in new windows or tabs #2197
Comments
@jgough Thanks for filing. As a fellow tab junkie, I agree this is annoying. I can confirm that this behavior still exists in I'm pretty sure the cause of the behavior is that the visualization list items are actually One final note is that the the dashboards listing page is still actually rendered via Angular. When we update that list rendering (potentially in #1866), we need to make sure we don't actually introduce this same bug there. |
With a quick inspect element, I can see that the issue is in fact that the element is a I was trying to find the exact location of the issue just by browsing on Github, but I got a little lost. From what I did see, though, it looks like it may be something that needs to be changed in OUI, but I'll look more into it on Monday. |
Thanks @BSFishy for the research @joshuarrrr @bandinib-amzn would you help @BSFishy to locate the issue. cc: @AMoo-Miki in case the fix need to change in Oui. |
I've found the cause of the issue by cross-referencing the code for the dashboard page. It seems that the link for the visualize page doesn't actually have an OpenSearch-Dashboards/src/plugins/visualize/public/application/utils/get_table_columns.tsx Lines 104 to 115 in 77af7f9
Compared to the dashboard page's: OpenSearch-Dashboards/src/plugins/dashboard/public/application/listing/dashboard_listing.js Lines 172 to 177 in 77af7f9
To get it to open in a new tab, we can't just cancel default, I don't think. I don't think it would be wise to try to figure out if the link should be opened in a new tab in the event handler, because that info isn't passed to the event. Not sure what |
for Eui, we coud refer to https://elastic.github.io/eui/#/navigation/link @AMoo-Miki Does Oui has equivalent doc site. |
There is one coming up soon. |
I had a quick conversation with @joshuarrrr, and we discussed if the OpenSearch-Dashboards/src/core/public/application/application_service.tsx Lines 252 to 270 in a19a741
As far as I'm aware, the only thing that the function is doing outside of changing the page is setting internal state, which should be done when the page is loaded through clicking the link. The |
Resolved via #2395 |
Describe the bug
If I go to /app/dashboards then I can middle click or right click on a dashboard in the list and open in a new window/tab
If I go to /app/visualize then I cannot middle click or right click on a visualization in the list to open in a new window/tab
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to be able to open visualizations in new tabs and windows, much like is possible for /app/dashboards.
Screenshots
Visualize:
Dashboards:
OpenSearch Version
1.3.4
Dashboards Version
1.3.4
Plugins
security-dashboards-plugin
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: