Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new float support to console autocomplete #7853

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

Bargs
Copy link
Contributor

@Bargs Bargs commented Jul 26, 2016

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

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
@Bargs
Copy link
Contributor Author

Bargs commented Jul 26, 2016

@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.

@ycombinator
Copy link
Contributor

Just tested this out. Functionality looks good. Reviewing code now...

@ycombinator
Copy link
Contributor

"Code" looks good too :)

LGTM. :shipit:

@Bargs Bargs assigned ppisljar and unassigned ycombinator Jul 26, 2016
@Bargs
Copy link
Contributor Author

Bargs commented Jul 26, 2016

@ppisljar could you give this a second set of eyes for me?

@ppisljar
Copy link
Member

LGTM

one question however, wouldnt be a good idea to automatically add the required parameters ?
at least on my end that doesnt happen ... when i add type: "scaled_float" nothing happens, when i add parameter "scaling_factor" it gets autocompleted to have value 100.

@ppisljar ppisljar assigned Bargs and unassigned ppisljar Jul 27, 2016
@Bargs
Copy link
Contributor Author

Bargs commented Jul 27, 2016

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 ?

@ycombinator
Copy link
Contributor

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.

@Bargs
Copy link
Contributor Author

Bargs commented Jul 27, 2016

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.

@Bargs Bargs merged commit 5ba2c18 into elastic:master Jul 27, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Add new float support to console autocomplete

Former-commit-id: 5ba2c18
tkajtoch added a commit that referenced this pull request Jul 13, 2024
`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 <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
cee-chen pushed a commit to cee-chen/kibana that referenced this pull request Sep 12, 2024
`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 <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants