Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-2234] Can't display the same chart again (master) - #2110
[ZEPPELIN-2234] Can't display the same chart again (master)#21101ambda wants to merge 2 commits into
Conversation
soralee
commented
Mar 9, 2017
Let me test master and branch-0.7 out! |
Leemoonsoo
commented
Mar 9, 2017
Tested and it fixes the problem. However, since the change #2092, visualization is re-created everytime when switching. I'd suggest find a way restore |
1ambda
commented
Mar 10, 2017
@Leemoonsoo Thanks for review. Then I will revert 1bdab41 and #2092 while trying to use |
1bdab41 to
14ee617Compare1ambda
commented
Mar 10, 2017
I'v just updated code. @Leemoonsoo Could you review again? Thanks! |
Leemoonsoo
commented
Mar 10, 2017
Tested and LGTM! |
prabhjyotsingh
commented
Mar 10, 2017
@1ambda Thank you for fixing this. |
Leemoonsoo
commented
Mar 10, 2017
Merge to master if no further discussions. |
1ambda
commented
Mar 10, 2017
Thanks @Leemoonsoo@prabhjyotsingh! |
### What is this PR for? Can't display the same chart again. I attached a screenshot. - this is the same fix with #2110 - except refactoring PR - based on branch-0.7 and - CI failure might be related with #2103 #### Implementation Details After #2092, - result.html will draw chart every time since we use `ng-if` instead of `ng-show` - that means DOM is deleted, and created too - so we have to create visualization instance every time which requires a newly created DOM. ```js builtInViz.instance = new Visualization(loadedElem, config); // `loadedElem` is the newly created DOM. ``` ### What type of PR is it? [Bug Fix] ### Todos NONE ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/ * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. [ZEPPELIN-533] ### How should this be tested? I attached a screenshot ### Screenshots (if appropriate) ##### Before: buggy  ##### After: fixed  ### Questions: * Does the licenses files need update? - NO * Is there breaking changes for older versions? - NO * Does this needs documentation? - NO Author: 1ambda <1amb4a@gmail.com> Closes#2114 from 1ambda/ZEPPELIN-2234/cant-display-same-chart-again-for-070 and squashes the following commits: 936123d [1ambda] fix: Retry until graph DOM is ready 475b532 [1ambda] fix: Reert #2092 for 0.7.0
What is this PR for?
Can't display the same chart again. I attached a screenshot.
Implementation Details
After #2092,
ng-ifinstead ofng-showWhat type of PR is it?
[Bug Fix]
Todos
NONE
What is the Jira issue?
How should this be tested?
I attached a screenshot
Screenshots (if appropriate)
Before: buggy
After: fixed
Questions: