Skip to content

Commit 5a3e213

Browse files
Update deprecation message in EnrichPolicy (#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.
1 parent 04dbd8c commit 5a3e213

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

x-pack/plugin/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ tasks.named("yamlRestCompatTestTransform").configure({ task ->
8989
task.skipTest("esql/80_text/reverse text", "The output type changed from TEXT to KEYWORD.")
9090
task.skipTest("esql/80_text/values function", "The output type changed from TEXT to KEYWORD.")
9191
task.skipTest("privileges/11_builtin/Test get builtin privileges" ,"unnecessary to test compatibility")
92+
task.skipTest("enrich/10_basic/Test using the deprecated elasticsearch_version field results in a warning", "The deprecation message was changed")
9293
})
9394

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ testClusters.configureEach {
3232
setting 'xpack.security.enabled', 'false'
3333
requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.4.0")
3434
}
35+
36+
tasks.named("yamlRestCompatTestTransform").configure({ task ->
37+
task.skipTest("enrich/10_basic/Test using the deprecated elasticsearch_version field results in a warning", "The deprecation message was changed")
38+
})
39+

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)