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

Conditional argument values #23139

Closed
kibanamachine opened this issue Aug 21, 2018 · 0 comments
Closed

Conditional argument values #23139

kibanamachine opened this issue Aug 21, 2018 · 0 comments
Labels
enhancement New value added to drive a business result impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. spec A project we are committed to working on that needs a spec. Promote to a `meta` when done Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@kibanamachine
Copy link
Contributor

Original comment by @rashidkpc:

There are lots of situations in which you want to apply a given argument value based on something. Take for example:

image asset={
 if {math 'random()' | gt 0.5} 
  then={asset 1} 
  else={asset 2}
}

What we'd need here is sort of a meta arg type called ifCondition that applies to all possible arg types and wraps them in a form for specifying the condition, and possible outcomes. We could probably expand this to switch/case later, but simply if would be a great start.

@kibanamachine kibanamachine added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas design spec A project we are committed to working on that needs a spec. Promote to a `meta` when done labels Sep 14, 2018
@cqliu1 cqliu1 added Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. and removed design labels Sep 28, 2018
@timductive timductive added enhancement New value added to drive a business result impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. spec A project we are committed to working on that needs a spec. Promote to a `meta` when done Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

3 participants