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

[BUG] Fail to generate report for dashboards/visualizations with hashed url #44

Closed
zhongnansu opened this issue May 13, 2021 · 1 comment
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists untriaged
Milestone

Comments

@zhongnansu
Copy link
Member

Describe the bug
Currently pdf/png report is based on url, but it failed to handle the hashed url case.

  • example for regular url
https://demo.elastic.co/app/dashboards#/view/welcome_dashboard?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:'Main%20landing%20page%20for%20Elastic%20Demo%20Gallery;%20a%20good%20reset%20point%20if%20you%20get%20lost.',filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:'Welcome%20Dashboard',viewMode:view)
  • example for hashed url
https://www.xxx.com/app/discover#/view/05959b70-9621-11eb-bdf0-ef859c96e685?_g=h@c823129&_a=h@8896bf6

but Dashboards enababled url hashing when there's multiple state.
https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/opensearch_dashboards_utils/public/state_management/url/hash_unhash_url.test.ts#L109

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
able to create pdf/png

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@zhongnansu zhongnansu added bug Something isn't working untriaged service labels May 13, 2021
@zhongnansu zhongnansu self-assigned this May 13, 2021
@zhongnansu zhongnansu added this to the may-bug-bash milestone May 14, 2021
@zhongnansu
Copy link
Member Author

this is similar to #19

@zhongnansu zhongnansu added the duplicate This issue or pull request already exists label May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists untriaged
Projects
None yet
Development

No branches or pull requests

1 participant