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

[ZEPPELIN-2148] On creation of Bar graph zeppelin UI shows it as minigraph - 2 #2092

Closed
wants to merge 2 commits into from

Conversation

prabhjyotsingh
Copy link
Contributor

What is this PR for?

This is based on #2074 (comment).

In this I've reverted #47a106a and applied, that.

What type of PR is it?

[Bug Fix]

What is the Jira issue?

What is the Jira issue?

How should this be tested?

Check screen shot.

Screenshots (if appropriate)

Before:
zeppelin-2148-before

After:
zeppelin-2148-after

Questions:

  • Does the licenses files need update?
  • Is there breaking changes for older versions?
  • Does this needs documentation?

…graph

### What is this PR for?
On creation of Bar graph zeppelin UI shows it as mini graph, and is easily reproducible on safari.

### What type of PR is it?
[Bug Fix]

### What is the Jira issue?
* [ZEPPELIN-2148](https://issues.apache.org/jira/browse/ZEPPELIN-2148)

### How should this be tested?
Check screen shot.

### Screenshots (if appropriate)
Before:
![zeppelin-2148-before](https://cloud.githubusercontent.com/assets/674497/23291765/b1469780-fa80-11e6-9a13-3ecb6ca275ba.gif)

After:
![zeppelin-2148-after](https://cloud.githubusercontent.com/assets/674497/23291751/9aa39122-fa80-11e6-962e-482e12c4bca5.gif)

### Questions:
* Does the licenses files need update? N/A
* Is there breaking changes for older versions? N/A
* Does this needs documentation? N/A

Author: Prabhjyot Singh <prabhjyotsingh@gmail.com>

Closes apache#2063 from prabhjyotsingh/ZEPPELIN-2148 and squashes the following commits:

bb66897 [Prabhjyot Singh] replace setTimeOut with $timeout
38a1198 [Prabhjyot Singh] ZEPPELIN-2148: On creation of Bar graph zeppelin UI shows it as mini graph (reverted from commit 47a106a)
@1ambda
Copy link
Member

1ambda commented Mar 4, 2017

LGTM

@prabhjyotsingh
Copy link
Contributor Author

Thank you @1ambda.
Will merge this soon based on reviews in #2074.

@asfgit asfgit closed this in 8938634 Mar 7, 2017
1ambda added a commit to 1ambda/zeppelin that referenced this pull request Mar 10, 2017
asfgit pushed a commit that referenced this pull request Mar 11, 2017
### What is this PR for?

Can't display the same chart again. I attached a screenshot.

- This should be backported into 0.7.0 as well.

#### 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

![2234](https://cloud.githubusercontent.com/assets/4968473/23694278/4451594e-041c-11e7-9971-f0bb5945a1be.gif)

##### After: fixed

![2234-2](https://cloud.githubusercontent.com/assets/4968473/23694270/34866ba8-041c-11e7-83a8-693a93646fa4.gif)

### 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 #2110 from 1ambda/ZEPPELIN-2234/cant-display-same-chart-again and squashes the following commits:

14ee617 [1ambda] fix: wait until DOM is loaded in renderDefaultDisplay func
42b5529 [1ambda] fix: Revert #2092
1ambda added a commit to 1ambda/zeppelin that referenced this pull request Mar 15, 2017
asfgit pushed a commit that referenced this pull request Mar 16, 2017
### 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

![2234](https://cloud.githubusercontent.com/assets/4968473/23694278/4451594e-041c-11e7-9971-f0bb5945a1be.gif)

##### After: fixed

![2234-2](https://cloud.githubusercontent.com/assets/4968473/23694270/34866ba8-041c-11e7-83a8-693a93646fa4.gif)

### 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
@prabhjyotsingh prabhjyotsingh deleted the ZEPPELIN-2148-2 branch February 25, 2018 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants