-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Visualizations are instantiated twice when changing options #7945
Comments
This will likely impact #7899 and vice versa. |
The visualization is refreshed twice, using a separate mechanism each time
(2) is not necessary. When changing the options, the correct data is already loaded in memory. No new fetch of ES is required. |
There are 2 listener mechanisms, both concurrently active: (1) The main visualization component ( A change there triggers a refresh of the visualization. It does NOT trigger a refresh when the vislib params remain unchanged. The latter are a subset of all vislib params and describe properties of the visualization only (and not properties that cause a query-change). These are found in the Options-tab. (2) The editor component ( Compare following flows: a) change in b) change in In case of (b), the round trip registered with listener (2) should not happen. |
@epixa @spalger I heard through the grapevine you may have some deeper knowledge off this. Can you take a look at the description of the bug before, and confirm/add feedback? @cjcenizal I think the above is the root-cause of the issue. If we clean this up, this would benefit #7899 as well. |
closed by #7960. |
Changes in the options-tab trigger a refresh of the visualization. This refresh occurs twice for a single change.
This is an internal performance issue and not noticeable to the user.
To reproduce:
-> notice that you hit the breakpoint twice. Between the first and second time, you'll see the correct visualization flash on the screen. It gets replaced by the second update.
The text was updated successfully, but these errors were encountered: