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

Toggling spy panel no longer throws an error #8877

Merged
merged 2 commits into from Oct 31, 2016

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Oct 28, 2016

Closes #8869.

Also tidied up some linter warnings.

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i might be wrong but this seems wrong :) so in dispatch you now always overwrite handler.highlight function with dispatch.highlight .... you defined default noop functions on handler, but those will always get overwriten by dispatch.highligh

if (!this.handler.highlight) {
this.handler.highlight = self.highlight;
}
this.handler.highlight = self.highlight;
Copy link
Member

@ppisljar ppisljar Oct 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you are always overwriting handler.highlight, even if its already defined. when area chart defines highlight function on handler it will be ignored .... (overwriten by dispatch.highlight)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks for flagging this. you're right, this is not going to work since we're also overriding in other places.

@ppisljar
Copy link
Member

LGTM, as discussed this is temporary till the vislib rewrite is merged.

@thomasneirynck thomasneirynck merged commit 5a8aaa2 into elastic:master Oct 31, 2016
elastic-jasper added a commit that referenced this pull request Oct 31, 2016
Backports PR #8877

**Commit 1:**
Toggling spy panel no longer throws an error

* Original sha: 0de553d
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z

**Commit 2:**
Complete existence check before using handler

* Original sha: 6fad2be
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
elastic-jasper added a commit that referenced this pull request Oct 31, 2016
Backports PR #8877

**Commit 1:**
Toggling spy panel no longer throws an error

* Original sha: 0de553d
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z

**Commit 2:**
Complete existence check before using handler

* Original sha: 6fad2be
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
thomasneirynck pushed a commit that referenced this pull request Nov 1, 2016
Backports PR #8877

**Commit 1:**
Toggling spy panel no longer throws an error

* Original sha: 0de553d
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z

**Commit 2:**
Complete existence check before using handler

* Original sha: 6fad2be
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
nreese pushed a commit to nreese/kibana that referenced this pull request Nov 10, 2016
Complete existence check of highlight-handler, before using it
@epixa epixa added v5.1.1 and removed v5.1.0 labels Dec 8, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Backports PR elastic#8877

**Commit 1:**
Toggling spy panel no longer throws an error

* Original sha: 0de553d
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z

**Commit 2:**
Complete existence check before using handler

* Original sha: 6fad2be
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z

Former-commit-id: c834ee7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants