[Fleet] Fields with dynamic types are silently ignored for some types #168823
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
Kibana version: Probably all.
Describe the bug:
Dynamic mapping definitions for some types are silently ignored and don't generate any mapping.
For example this field definition doesn't generate any mapping, nor produces any failure:
If the
object_type
is changed to other types asdouble
, the mapping is generated.The "compact" syntax is also ignored:
Steps to reproduce:
scaled_float
type.Expected behavior:
The field mapping is installed, or if it is incorrect, a failure is produced.
Any additional context:
@kyungeunni identified that the issue could be around the following code, where there is some special handling for some types, but not for all of them: https://github.com/elastic/kibana/blob/c000a25f41474df052d6fefe187916455e515e24/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts#L284C26-L290
Thanks @kyungeunni for identifying this issue!
The text was updated successfully, but these errors were encountered: