-
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
Trigger renderComplete on DOM instead of the Vis #9176
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set and update element attributes as the event(s) fire, and indicate if they ever will
fixed |
spalger
approved these changes
Nov 22, 2016
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
markdown and metric vis tests are broken |
LGTM |
@spalger thanks for fixing the tests, I had to take off shortly after I opened this PR so I didn't have time for the tests to run. |
w33ble
added a commit
to w33ble/kibana
that referenced
this pull request
Nov 22, 2016
) * correctly use implementsRenderComplete from vis config * set implementsRenderComplete on all vis types * emit on DOM instead of the vis * vis doesn't need to be an EventEmitter * listen for renderComplete on visualize set and update element attributes as the event(s) fire, and indicate if they ever will * [vislib/handler] fall through to lower return * [vislibRenderbot/tests] reduce expected call count * [vis/tests] add $element to test injectors * [markdownVis] fix test
epixa
pushed a commit
that referenced
this pull request
Nov 23, 2016
…9183) * correctly use implementsRenderComplete from vis config * set implementsRenderComplete on all vis types * emit on DOM instead of the vis * vis doesn't need to be an EventEmitter * listen for renderComplete on visualize set and update element attributes as the event(s) fire, and indicate if they ever will * [vislib/handler] fall through to lower return * [vislibRenderbot/tests] reduce expected call count * [vis/tests] add $element to test injectors * [markdownVis] fix test
elastic-jasper
added a commit
that referenced
this pull request
Nov 23, 2016
Backports PR #9183 **Commit 1:** BACKPORT: Trigger renderComplete on DOM instead of the Vis (#9176) * correctly use implementsRenderComplete from vis config * set implementsRenderComplete on all vis types * emit on DOM instead of the vis * vis doesn't need to be an EventEmitter * listen for renderComplete on visualize set and update element attributes as the event(s) fire, and indicate if they ever will * [vislib/handler] fall through to lower return * [vislibRenderbot/tests] reduce expected call count * [vis/tests] add $element to test injectors * [markdownVis] fix test * Original sha: 7190260 * Authored by Joe Fleming <[email protected]> on 2016-11-22T16:49:16Z
epixa
pushed a commit
that referenced
this pull request
Nov 23, 2016
Backports PR #9183 **Commit 1:** BACKPORT: Trigger renderComplete on DOM instead of the Vis (#9176) * correctly use implementsRenderComplete from vis config * set implementsRenderComplete on all vis types * emit on DOM instead of the vis * vis doesn't need to be an EventEmitter * listen for renderComplete on visualize set and update element attributes as the event(s) fire, and indicate if they ever will * [vislib/handler] fall through to lower return * [vislibRenderbot/tests] reduce expected call count * [vis/tests] add $element to test injectors * [markdownVis] fix test * Original sha: 7190260 * Authored by Joe Fleming <[email protected]> on 2016-11-22T16:49:16Z
airow
pushed a commit
to airow/kibana
that referenced
this pull request
Feb 16, 2017
elastic#9203) Backports PR elastic#9183 **Commit 1:** BACKPORT: Trigger renderComplete on DOM instead of the Vis (elastic#9176) * correctly use implementsRenderComplete from vis config * set implementsRenderComplete on all vis types * emit on DOM instead of the vis * vis doesn't need to be an EventEmitter * listen for renderComplete on visualize set and update element attributes as the event(s) fire, and indicate if they ever will * [vislib/handler] fall through to lower return * [vislibRenderbot/tests] reduce expected call count * [vis/tests] add $element to test injectors * [markdownVis] fix test * Original sha: 7190260 * Authored by Joe Fleming <[email protected]> on 2016-11-22T16:49:16Z Former-commit-id: 67db8dd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Evolution of #8914
Instead of making Vis objects event emitter and using them to indicate visualization updates, use native DOM events so they can be listened to without reaching into
$scope
. Also, listen for this event and update attributes on the<visualize>
elements.This was a required change since production builds don't expose Angular debugging, so jquery can't read the
scope()
off elements.I also noticed that the
implementsRenderComplete
was being completely ignored previously. It was always false for template vis, and true for vislib vis. I fixed that and added the setting to all the vislib vis types.