Skip to content

Commit e037347

Browse files
authored
[Deprecation] Update URL (elastic#124259) (elastic#124269)
* [Deprecation] Update URL (elastic#124259) Replace the URL with the new updated docs URL. Should probably migrate to ReferenceDocs after 9.1. * Fix checkstyle
1 parent 851c7cb commit e037347

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecker.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private DeprecationIssue oldIndicesCheck(
103103
return new DeprecationIssue(
104104
DeprecationIssue.Level.CRITICAL,
105105
"One or more Transforms write to this index with a compatibility version < 8.0",
106-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
106+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
107107
+ "#breaking_90_transform_destination_index",
108108
Strings.format(
109109
"This index was created in version [%s] and requires action before upgrading to 9.0. The following transforms are "
@@ -119,7 +119,7 @@ private DeprecationIssue oldIndicesCheck(
119119
return new DeprecationIssue(
120120
DeprecationIssue.Level.CRITICAL,
121121
"Old index with a compatibility version < 8.0",
122-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html",
122+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
123123
"This index has version: " + currentCompatibilityVersion.toReleaseVersion(),
124124
false,
125125
Map.of("reindex_required", true)
@@ -146,7 +146,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
146146
return new DeprecationIssue(
147147
DeprecationIssue.Level.WARNING,
148148
"One or more Transforms write to this old index with a compatibility version < 8.0",
149-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
149+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
150150
+ "#breaking_90_transform_destination_index",
151151
Strings.format(
152152
"This index was created in version [%s] and will be supported as a read-only index in 9.0. The following "
@@ -162,7 +162,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
162162
return new DeprecationIssue(
163163
DeprecationIssue.Level.WARNING,
164164
"Old index with a compatibility version < 8.0 has been ignored",
165-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-9.0.html",
165+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
166166
"This read-only index has version: "
167167
+ currentCompatibilityVersion.toReleaseVersion()
168168
+ " and will be supported as read-only in 9.0",

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testOldIndicesCheck() {
8080
DeprecationIssue expected = new DeprecationIssue(
8181
DeprecationIssue.Level.CRITICAL,
8282
"Old index with a compatibility version < 8.0",
83-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html",
83+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
8484
"This index has version: " + OLD_VERSION.toReleaseVersion(),
8585
false,
8686
singletonMap("reindex_required", true)
@@ -104,8 +104,7 @@ public void testOldTransformIndicesCheck() {
104104
var expected = new DeprecationIssue(
105105
DeprecationIssue.Level.CRITICAL,
106106
"One or more Transforms write to this index with a compatibility version < 8.0",
107-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
108-
+ "#breaking_90_transform_destination_index",
107+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
109108
"This index was created in version ["
110109
+ OLD_VERSION.toReleaseVersion()
111110
+ "] and requires action before upgrading to 9.0. "
@@ -131,8 +130,7 @@ public void testOldIndicesCheckWithMultipleTransforms() {
131130
var expected = new DeprecationIssue(
132131
DeprecationIssue.Level.CRITICAL,
133132
"One or more Transforms write to this index with a compatibility version < 8.0",
134-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
135-
+ "#breaking_90_transform_destination_index",
133+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
136134
"This index was created in version ["
137135
+ OLD_VERSION.toReleaseVersion()
138136
+ "] and requires action before upgrading to 9.0. "
@@ -162,7 +160,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
162160
new DeprecationIssue(
163161
DeprecationIssue.Level.CRITICAL,
164162
"One or more Transforms write to this index with a compatibility version < 8.0",
165-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
163+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
166164
+ "#breaking_90_transform_destination_index",
167165
"This index was created in version ["
168166
+ OLD_VERSION.toReleaseVersion()
@@ -178,7 +176,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
178176
new DeprecationIssue(
179177
DeprecationIssue.Level.CRITICAL,
180178
"One or more Transforms write to this index with a compatibility version < 8.0",
181-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
179+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
182180
+ "#breaking_90_transform_destination_index",
183181
"This index was created in version ["
184182
+ OLD_VERSION.toReleaseVersion()
@@ -285,7 +283,7 @@ public void testOldIndicesIgnoredWarningCheck() {
285283
DeprecationIssue expected = new DeprecationIssue(
286284
DeprecationIssue.Level.WARNING,
287285
"Old index with a compatibility version < 8.0 has been ignored",
288-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-9.0.html",
286+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
289287
"This read-only index has version: " + OLD_VERSION.toReleaseVersion() + " and will be supported as read-only in 9.0",
290288
false,
291289
singletonMap("reindex_required", true)
@@ -336,8 +334,7 @@ public void testOldTransformIndicesIgnoredCheck() {
336334
var expected = new DeprecationIssue(
337335
DeprecationIssue.Level.WARNING,
338336
"One or more Transforms write to this old index with a compatibility version < 8.0",
339-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
340-
+ "#breaking_90_transform_destination_index",
337+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
341338
"This index was created in version ["
342339
+ OLD_VERSION.toReleaseVersion()
343340
+ "] and will be supported as a read-only index in 9.0. "
@@ -363,8 +360,7 @@ public void testOldIndicesIgnoredCheckWithMultipleTransforms() {
363360
var expected = new DeprecationIssue(
364361
DeprecationIssue.Level.WARNING,
365362
"One or more Transforms write to this old index with a compatibility version < 8.0",
366-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
367-
+ "#breaking_90_transform_destination_index",
363+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
368364
"This index was created in version ["
369365
+ OLD_VERSION.toReleaseVersion()
370366
+ "] and will be supported as a read-only index in 9.0. "
@@ -394,7 +390,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
394390
new DeprecationIssue(
395391
DeprecationIssue.Level.WARNING,
396392
"One or more Transforms write to this old index with a compatibility version < 8.0",
397-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
393+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
398394
+ "#breaking_90_transform_destination_index",
399395
"This index was created in version ["
400396
+ OLD_VERSION.toReleaseVersion()
@@ -410,7 +406,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
410406
new DeprecationIssue(
411407
DeprecationIssue.Level.WARNING,
412408
"One or more Transforms write to this old index with a compatibility version < 8.0",
413-
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html"
409+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
414410
+ "#breaking_90_transform_destination_index",
415411
"This index was created in version ["
416412
+ OLD_VERSION.toReleaseVersion()

0 commit comments

Comments
 (0)