Open Sergi-GC opened 3 years ago
Pinging @elastic/es-ui (Team:Elasticsearch UI)
Possibly related to https://github.com/elastic/kibana/issues/107464
I did not get a chance to fix this before going on leave, but wanted to share my findings in case anyone else is available to pick this up.
I believe there are two changes that are needed to address this issue:
Update the mappings configuration schema to support string boolean values for dynamic
, date_detection
, numeric_detection
, _source.enabled
and _routing.required
fields.
For example:
dynamic: t.union([t.boolean, t.literal('true'), t.literal('false'), t.literal('strict')]),
Update the configuration form schema to properly deserialize string boolean values to boolean.
Pinging @elastic/kibana-management (Team:Kibana Management)
Kibana version: 7.12.0 / 7.12.1
Elasticsearch version: 7.12.0 / 7.12.1
Server OS version: ESS
Browser version: any
Browser OS version: any
Describe the bug: If an index template (also for legacy or component templates) has any parameter field defined with double quotes under
mappings
, the template mappings won't be editable from the Kibana UI in Stack Management > Index Management > Templates > Edit templateError:
From the error it looks like the parameters are being read as the mappings' type by the UI.
Steps to reproduce:
"dynamic": "true"
or"date_detection": "false"
.Expected behavior: We should be able to edit the mappings
Workarounds:
Parse the mappings without the double quotes
Edit the templates mappings from Kibana Dev Tools.