Skip to content

[Mappings editor] Regression on "scaled_float" and "date_range" type #81160

@sebelga

Description

@sebelga

We have a regression in the "scaled_float" and "date_range" field type. Both have a logic that looks for the field type expecting a "string" but now the type is always an array of ComboBoxOption.

This regression probably came when I fixed the "serializer being called on each field value change" issue (#75166)

The issue is that both types have an extra form field to render in the form if the type is detected.

<FormDataProvider pathsToWatch="subType">
  {(formData) =>
    formData.subType === 'date_range' ? (
      <LocaleParameter defaultToggleValue={getDefaultToggleValue('locale', field.source)} />
    ) : null
  }
</FormDataProvider>

but the statement formData.subType === 'date_range' will never be true as the subType we receive is an array of objects.

I've tested both 7.9 and 7.10 and the regression is only in 7.10.

Metadata

Metadata

Assignees

Labels

Feature:Index ManagementIndex and index templates UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//bugFixes for quality problems that affect the customer experiencev7.10.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions