Add new float support to console autocomplete#7853
Conversation
Elasticsearch added a couple new data types, half_float and scaled_float, so we should include those in Console's autocomplete suggestions for mappings. Scaled_float also has a required parameter called scaling_factor, which we suggest a sensible default for when autocompleted. We talked about leaving the value empty, forcing the user to pick a value, but the autocompleter doesn't seem to support blank values. Fixes: elastic#7811 Related: elastic#7782
|
@ycombinator I couldn't figure out a way to autocomplete a blank value, so I went with Adrien's suggestion for a good default value. |
|
Just tested this out. Functionality looks good. Reviewing code now... |
|
"Code" looks good too :) LGTM. |
|
@ppisljar could you give this a second set of eyes for me? |
|
LGTM one question however, wouldnt be a good idea to automatically add the required parameters ? |
|
That's a good point @ppisljar, I'm not sure if it's possible with the current autocomplete DSL though. Do you have any idea @ycombinator ? |
|
Yeah, that would be nice but I'm not sure what might be involved in implementing it within the current constraints. FWIW, I don't recall seeing this sort of behavior in Sense/Console before. |
|
Thanks for the input. I looked around myself and I couldn't find any existing examples of this sort of autocomplete. Gonna merge as is. |
Add new float support to console autocomplete Former-commit-id: 5ba2c18
`v95.2.0`⏩`v95.3.0` _[Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_ --- ## [`v95.3.0`](https://github.com/elastic/eui/releases/v95.3.0) - Updated `EuiThemeProvider`s to allow modifying/setting custom `breakpoint`s in nested usage (as opposed to only at the top `EuiProvider` level) ([#7862](elastic/eui#7862)) **Bug fixes** - Fixed a Chrome/Edge CSS `mask-image` bug that was affecting scroll overflow shadow utilties ([#7855](elastic/eui#7855)) **CSS-in-JS conversions** - Converted `EuiColorPicker` to Emotion; Removed `$euiColorPickerWidth` ([#7845](elastic/eui#7845)) - Converted `EuiColorPickerSwatch` to Emotion ([#7853](elastic/eui#7853)) - Converted `EuiColorPalettePicker` and `EuiColorPaletteDisplay` to Emotion ([#7854](elastic/eui#7854)) - Removed `$euiColorPaletteDisplaySizes` - Removed `@mixin euiColorPaletteInnerBorder` - Removed `$euiColorPickerValueRange0`, `$euiColorPickerValueRange1`, `$euiColorPickerSaturationRange0`, `$euiColorPickerSaturationRange1`, and `$euiColorPickerIndicatorSize` ([#7859](elastic/eui#7859)) **Accessibility** - Updated the `aria-label` attribute for the `EuiFilePicker` remove file button ([#7860](elastic/eui#7860)) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
`v95.2.0`⏩`v95.3.0` _[Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_ --- - Updated `EuiThemeProvider`s to allow modifying/setting custom `breakpoint`s in nested usage (as opposed to only at the top `EuiProvider` level) ([elastic#7862](elastic/eui#7862)) **Bug fixes** - Fixed a Chrome/Edge CSS `mask-image` bug that was affecting scroll overflow shadow utilties ([elastic#7855](elastic/eui#7855)) **CSS-in-JS conversions** - Converted `EuiColorPicker` to Emotion; Removed `$euiColorPickerWidth` ([elastic#7845](elastic/eui#7845)) - Converted `EuiColorPickerSwatch` to Emotion ([elastic#7853](elastic/eui#7853)) - Converted `EuiColorPalettePicker` and `EuiColorPaletteDisplay` to Emotion ([elastic#7854](elastic/eui#7854)) - Removed `$euiColorPaletteDisplaySizes` - Removed `@mixin euiColorPaletteInnerBorder` - Removed `$euiColorPickerValueRange0`, `$euiColorPickerValueRange1`, `$euiColorPickerSaturationRange0`, `$euiColorPickerSaturationRange1`, and `$euiColorPickerIndicatorSize` ([elastic#7859](elastic/eui#7859)) **Accessibility** - Updated the `aria-label` attribute for the `EuiFilePicker` remove file button ([elastic#7860](elastic/eui#7860)) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Elasticsearch added a couple new data types, half_float and
scaled_float, so we should include those in Console's autocomplete
suggestions for mappings. Scaled_float also has a required parameter
called scaling_factor, which we suggest a sensible default for when
autocompleted. We talked about leaving the value empty, forcing the user
to pick a value, but the autocompleter doesn't seem to support blank
values.
Fixes: #7811
Related: #7782