Skip to content

[backport] PR #8740 to 5.0 - Adapt to ip range breaking changes in ES 5.0+#8760

Merged
Bargs merged 1 commit into5.0from
jasper/backport/8740/5.0
Oct 19, 2016
Merged

[backport] PR #8740 to 5.0 - Adapt to ip range breaking changes in ES 5.0+#8760
Bargs merged 1 commit into5.0from
jasper/backport/8740/5.0

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #8740

Commit 1:
Generate key for ip range from/to agg

Elasticsearch 5.0 no longer returns a key prop with ip range buckets
when from/to is used in the request. Looking at the 2.x docs it
appears to be a mistake that it was ever included in the first place.
So now we'll generate the key ourselves.

Fixes: #8736

Commit 2:
Stop sending null in ip range from/to props

The IP range agg supports open ended ranges. Elasticsearch 2.x was
lenient and accepted null as a value for the from/to props, but the
correct way to do an open ended range was always to omit the from/to
key entirely. ES 5.0 appears to be more strict and barfs when null is
passed. This commit removes the null values.

Fixes #8741

Commit 3:
ip range label and filter improvements

@elastic-jasper elastic-jasper added backport This PR is a backport of another PR has conflicts labels Oct 19, 2016
---------

**Commit 1:**
Generate key for ip range from/to agg

Elasticsearch 5.0 no longer returns a `key` prop with ip range buckets
when from/to is used in the request. Looking at the [2.x docs][1] it
appears to be a mistake that it was ever included in the first place.
So now we'll generate the key ourselves.

[1]: https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-aggregations-bucket-iprange-aggregation.html

Fixes: #8736

* Original sha: f344a4b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-18T22:51:56Z

**Commit 2:**
Stop sending null in ip range from/to props

The IP range agg supports open ended ranges. Elasticsearch 2.x was
lenient and accepted null as a value for the from/to props, but the
correct way to do an open ended range was always to omit the from/to
key entirely. ES 5.0 appears to be more strict and barfs when null is
passed. This commit removes the null values.

Fixes #8741

* Original sha: 3ca45ba
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-18T23:18:14Z

**Commit 3:**
ip range label and filter improvements

* updated the filter labels to match the range labels
* fixed the filter creation to work for unbound ranges

* Original sha: b153ea0
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-10-19T17:57:58Z
* Committed by Matthew Bargar <mbargar@gmail.com> on 2016-10-19T18:36:22Z
@spalger spalger force-pushed the jasper/backport/8740/5.0 branch from 6882561 to 5f33808 Compare October 19, 2016 19:15
@Bargs
Copy link
Contributor

Bargs commented Oct 19, 2016

Just waiting on intake and selenium to run before merging these

@Bargs Bargs merged commit 5e1ac9d into 5.0 Oct 19, 2016
@Bargs Bargs deleted the jasper/backport/8740/5.0 branch October 19, 2016 20:49
@epixa epixa changed the title [backport] PR #8740 to 5.0 [backport] PR #8740 to 5.0 - Adapt to ip range breaking changes in ES 5.0+ Oct 24, 2016
weronikaolejniczak added a commit that referenced this pull request Jun 13, 2025
`@elastic/eslint-plugin-eui`: `1.0.0` ⏩ `2.0.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)

## Changes

This PR updates the `@elastic/eslint-plugin-eui` version to latest:
[v2.0.0](https://www.npmjs.com/package/@elastic/eslint-plugin-eui/v/2.0.0).

## Package updates



### `@elastic/eslint-plugin-eui`

**Breaking changes**

- Remove `prefer-css-prop-for-static-styles` rule because it produces
too many warnings. Static code analysis cannot flag dynamic styles with
confidence because it doesn't run the code to asses runtime values. We
will explore runtime solutions.
([#8760](elastic/eui#8760))
iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
`@elastic/eslint-plugin-eui`: `1.0.0` ⏩ `2.0.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)

## Changes

This PR updates the `@elastic/eslint-plugin-eui` version to latest:
[v2.0.0](https://www.npmjs.com/package/@elastic/eslint-plugin-eui/v/2.0.0).

## Package updates



### `@elastic/eslint-plugin-eui`

**Breaking changes**

- Remove `prefer-css-prop-for-static-styles` rule because it produces
too many warnings. Static code analysis cannot flag dynamic styles with
confidence because it doesn't run the code to asses runtime values. We
will explore runtime solutions.
([elastic#8760](elastic/eui#8760))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants