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

[UI] [Visualization] Problems with the map visualizations #3919

Closed
2 tasks done
Desvelao opened this issue Mar 25, 2022 · 2 comments · Fixed by #3942
Closed
2 tasks done

[UI] [Visualization] Problems with the map visualizations #3919

Desvelao opened this issue Mar 25, 2022 · 2 comments · Fixed by #3942
Assignees
Labels
type/bug Bug issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Mar 25, 2022

Wazuh Elastic Rev Security
4.x 7.x 4xxx Basic, ODFE, Xpack
Browser
Chrome, Firefox, Safari, etc

Description
The map visualization has some problems:

  • it is not sometimes completely rendered
  • the legend could appear duplicated

The problems were seen in Wazuh dashboard, we should review if they appear in Kibana.

Tasks

  • Research the causes of the problems
  • Review if we can apply some fix taking into account that the visualizations are rendered using a method exposed by the core of plugin platform. If not, we should consider removing the visualizations if the problems are persistent.

Screenshots
image

@Desvelao Desvelao added the type/bug Bug issue label Mar 25, 2022
@davidjiglesias davidjiglesias moved this to To do in Release 4.3.0 Mar 25, 2022
@asteriscos asteriscos self-assigned this Mar 30, 2022
@Desvelao Desvelao self-assigned this Mar 31, 2022
@asteriscos
Copy link
Member

asteriscos commented Mar 31, 2022

Tried to reproduce the issue many many times and finally got an exception:

Screenshot from 2022-03-31 20-23-48

Screenshot from 2022-03-31 20-24-15

The file is:
/plugin:tileMap/src/plugins/tile_map/public/tile_map_visualization.js

Tested it in mayor browsers and still no pattern or cause was found. This behavior seems to be very "random" and hard to reproduce.

@asteriscos
Copy link
Member

Trying to find the source of this issue with @Desvelao, we analyzed the maps visualizations JSON definitions to check if any of the properties was misconfigured or deprecated. We also compared the visualization JSON properties with a newly created map in the Visualization plugin saved object.
This tests were of little help to reproduce and find the cause of this issue as everything seemed to work as expected.

image

Doing some research about the way the visualizations rendered, I realized while the visualization is loading its wrapper has display:none style. This causes the map to miscalculate its coordinates and causes this issue. The fix proposal is to change the map visibility without collapsing its wrapper in the loading state.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants