elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

Update documentation for Cavas to include more info for case statements #61512

Closed travisestill closed 3 years ago

travisestill commented 4 years ago

Article and section: https://www.elastic.co/guide/en/kibana/master/canvas-function-reference.html#case_fn

What details should be added: Expand the documentation to answer questions like:

  1. What happens if more that one case evaluates to "true"? The example implies that only one case should be true, but being explicit about that would be ideal.
  2. What is the purpose, or constraints, on "when"? Why are there both "when" and "if"?
  3. Is "default" required? What happens if it is missing?
elasticmachine commented 4 years ago

Pinging @elastic/kibana-docs (Team:Docs)

elasticmachine commented 4 years ago

Pinging @elastic/kibana-canvas (Team:Canvas)

KOTungseth commented 3 years ago

Closing due to inactivity. To discuss, please reopen.