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

Adds clear function #26397

Merged
merged 2 commits into from
Dec 4, 2018
Merged

Adds clear function #26397

merged 2 commits into from
Dec 4, 2018

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Nov 29, 2018

Closes #25807.

This adds a Canvas function that doesn't take any args and returns null for any context. This is especially helpful when you want to clear context before executing a function.

@cqliu1 cqliu1 added review v7.0.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.6.0 labels Nov 29, 2018
@cqliu1 cqliu1 requested a review from monfera November 29, 2018 07:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cqliu1 cqliu1 requested review from rashidkpc and removed request for monfera November 29, 2018 18:53
*/

export const clear = () => ({
name: 'clear',
Copy link
Contributor

Choose a reason for hiding this comment

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

Add type: 'null' in here.

@cqliu1
Copy link
Contributor Author

cqliu1 commented Dec 3, 2018

@rashidkpc I added the return type to the clear function def. Good to merge?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@rashidkpc
Copy link
Contributor

rashidkpc commented Dec 4, 2018 via email

@cqliu1 cqliu1 merged commit 17bca7b into elastic:master Dec 4, 2018
@cqliu1 cqliu1 deleted the canvas/clear-function branch December 4, 2018 20:46
cqliu1 added a commit to cqliu1/kibana that referenced this pull request Dec 4, 2018
* Added clear function that returns null context

* Added return type to clear function
cqliu1 added a commit that referenced this pull request Dec 4, 2018
* Added clear function that returns null context

* Added return type to clear function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants