Skip to content

Commit 0de56f6

Browse files
[8.x] Update deprecation message in EnrichPolicy (elastic#116504) (elastic#116522)
* Update deprecation message in `EnrichPolicy` (elastic#116504) The `elasticsearch_version` property of enrich policies is deprecated with a message saying that it will be removed in ES 9.0. It's still deprecated, but it won't be removed in 9.0. So this change makes the deprecation message less specific. * Remove skips not needed for backport
1 parent f8bf31c commit 0de56f6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/enrich/EnrichPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public final class EnrichPolicy implements Writeable, ToXContentFragment {
3737

3838
private static final String ELASTICEARCH_VERSION_DEPRECATION_MESSAGE =
39-
"the [elasticsearch_version] field of an enrich policy has no effect and will be removed in Elasticsearch 9.0";
39+
"the [elasticsearch_version] field of an enrich policy has no effect and will be removed in a future version of Elasticsearch";
4040

4141
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(EnrichPolicy.class);
4242

x-pack/plugin/enrich/qa/rest/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ testClusters.configureEach {
3232
setting 'xpack.security.enabled', 'false'
3333
requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.4.0")
3434
}
35+

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/enrich/10_basic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ setup:
6969

7070
- do:
7171
warnings:
72-
- "the [elasticsearch_version] field of an enrich policy has no effect and will be removed in Elasticsearch 9.0"
72+
- "the [elasticsearch_version] field of an enrich policy has no effect and will be removed in a future version of Elasticsearch"
7373
enrich.put_policy:
7474
name: policy-crud-warning
7575
body:

0 commit comments

Comments
 (0)