TSVB markdown Dates, Boolean & String fields not rendering #56026
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:TSVB
TSVB (Time Series Visual Builder)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
triage_needed
**Kibana version: 7.5
**Elasticsearch version:7.5
**Server OS version: macOS
**Browser version: chrome
Browser OS version:
**Original install method (e.g. download page, yum, from source, etc.):self-managed, zip download
**Describe the bug: When rendering a single result from the tree using the {{#each _all}} mustache language. Kibana will not render Dates and boolean fields, and String fields of more than 5.
DATES -> this will render 1 result of the TREE/ARRAY, but when you do it with DATES it renders the whole TREE. I want the same result that I receive with string fields. 1. If I increased the TOP field more results of the TREE/ARRAY will render the specified input.
More than 5 STRING fields -> TSVB messes up it starts to reorder your code. No matter if your code and panels read 1,2,3,4 (blocks of code or panels written in sequential order ) once you get to 5 or more... its reorders to 5,1,2,3,4 or 5,1,2,3,4,6 or worst.
BOOLEAN fields -> TRUE or False render as 0's
String fields -> mapped as type: "text" only doesn't render correctly.
The Datatypes in the mappings are declared accordingly.
Steps to reproduce:
TSVB visualization with the markdown selected.
Load your index using "Panel Options" tab -> data the select @timestamp on the time field
Click on the Data tab and add your variables. Aggregations = Count, Add the appropriate fields either a combo or single entry of dates and text fields, grouped by "terms", top "1"
If done correctly switch to the "Markdown" tab and your variable should be loaded.
Enter the markdown code: ex.
{{#each _all}}
{{#with id as | id |}}
ID {{../label}}
{{/with}}
{{#with date as | date |}}
date {{../label}}
{{/with}}
{{/each}}
**Expected behavior: Code should render 1 result from each aggregation no matter the field type except "text fields" so keywords, dates, and booleans should show.
**Screenshots (if relevant):
**Errors in browser console (if relevant):na
**Provide logs and/or server output (if relevant):na
**Any additional context: this visualization is not tagged as "Experimental"
The text was updated successfully, but these errors were encountered: