Skip to content

Commit a5e0423

Browse files
authored
[Deprecation] Update URL (#124259)
Replace the URL with the new updated docs URL. Should probably migrate to ReferenceDocs after 9.1.
1 parent 10a8dcf commit a5e0423

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
@@ -101,7 +101,7 @@ private DeprecationIssue oldIndicesCheck(
101101
return new DeprecationIssue(
102102
DeprecationIssue.Level.CRITICAL,
103103
"One or more Transforms write to this index with a compatibility version < 9.0",
104-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
104+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
105105
+ "#breaking_90_transform_destination_index",
106106
Strings.format(
107107
"This index was created in version [%s] and requires action before upgrading to 9.0. The following transforms are "
@@ -117,7 +117,7 @@ private DeprecationIssue oldIndicesCheck(
117117
return new DeprecationIssue(
118118
DeprecationIssue.Level.CRITICAL,
119119
"Old index with a compatibility version < 9.0",
120-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-9.0.html",
120+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
121121
"This index has version: " + currentCompatibilityVersion.toReleaseVersion(),
122122
false,
123123
Map.of("reindex_required", true)
@@ -144,7 +144,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
144144
return new DeprecationIssue(
145145
DeprecationIssue.Level.WARNING,
146146
"One or more Transforms write to this old index with a compatibility version < 9.0",
147-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
147+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
148148
+ "#breaking_90_transform_destination_index",
149149
Strings.format(
150150
"This index was created in version [%s] and will be supported as a read-only index in 9.0. The following "
@@ -160,7 +160,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
160160
return new DeprecationIssue(
161161
DeprecationIssue.Level.WARNING,
162162
"Old index with a compatibility version < 9.0 has been ignored",
163-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-9.0.html",
163+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
164164
"This read-only index has version: "
165165
+ currentCompatibilityVersion.toReleaseVersion()
166166
+ " 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
@@ -79,7 +79,7 @@ public void testOldIndicesCheck() {
7979
DeprecationIssue expected = new DeprecationIssue(
8080
DeprecationIssue.Level.CRITICAL,
8181
"Old index with a compatibility version < 9.0",
82-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-9.0.html",
82+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
8383
"This index has version: " + OLD_VERSION.toReleaseVersion(),
8484
false,
8585
singletonMap("reindex_required", true)
@@ -103,8 +103,7 @@ public void testOldTransformIndicesCheck() {
103103
var expected = new DeprecationIssue(
104104
DeprecationIssue.Level.CRITICAL,
105105
"One or more Transforms write to this index with a compatibility version < 9.0",
106-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
107-
+ "#breaking_90_transform_destination_index",
106+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
108107
"This index was created in version ["
109108
+ OLD_VERSION.toReleaseVersion()
110109
+ "] and requires action before upgrading to 9.0. "
@@ -130,8 +129,7 @@ public void testOldIndicesCheckWithMultipleTransforms() {
130129
var expected = new DeprecationIssue(
131130
DeprecationIssue.Level.CRITICAL,
132131
"One or more Transforms write to this index with a compatibility version < 9.0",
133-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
134-
+ "#breaking_90_transform_destination_index",
132+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
135133
"This index was created in version ["
136134
+ OLD_VERSION.toReleaseVersion()
137135
+ "] and requires action before upgrading to 9.0. "
@@ -161,7 +159,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
161159
new DeprecationIssue(
162160
DeprecationIssue.Level.CRITICAL,
163161
"One or more Transforms write to this index with a compatibility version < 9.0",
164-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
162+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
165163
+ "#breaking_90_transform_destination_index",
166164
"This index was created in version ["
167165
+ OLD_VERSION.toReleaseVersion()
@@ -177,7 +175,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
177175
new DeprecationIssue(
178176
DeprecationIssue.Level.CRITICAL,
179177
"One or more Transforms write to this index with a compatibility version < 9.0",
180-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
178+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
181179
+ "#breaking_90_transform_destination_index",
182180
"This index was created in version ["
183181
+ OLD_VERSION.toReleaseVersion()
@@ -284,7 +282,7 @@ public void testOldIndicesIgnoredWarningCheck() {
284282
DeprecationIssue expected = new DeprecationIssue(
285283
DeprecationIssue.Level.WARNING,
286284
"Old index with a compatibility version < 9.0 has been ignored",
287-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-9.0.html",
285+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
288286
"This read-only index has version: " + OLD_VERSION.toReleaseVersion() + " and will be supported as read-only in 9.0",
289287
false,
290288
singletonMap("reindex_required", true)
@@ -335,8 +333,7 @@ public void testOldTransformIndicesIgnoredCheck() {
335333
var expected = new DeprecationIssue(
336334
DeprecationIssue.Level.WARNING,
337335
"One or more Transforms write to this old index with a compatibility version < 9.0",
338-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
339-
+ "#breaking_90_transform_destination_index",
336+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
340337
"This index was created in version ["
341338
+ OLD_VERSION.toReleaseVersion()
342339
+ "] and will be supported as a read-only index in 9.0. "
@@ -362,8 +359,7 @@ public void testOldIndicesIgnoredCheckWithMultipleTransforms() {
362359
var expected = new DeprecationIssue(
363360
DeprecationIssue.Level.WARNING,
364361
"One or more Transforms write to this old index with a compatibility version < 9.0",
365-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
366-
+ "#breaking_90_transform_destination_index",
362+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
367363
"This index was created in version ["
368364
+ OLD_VERSION.toReleaseVersion()
369365
+ "] and will be supported as a read-only index in 9.0. "
@@ -393,7 +389,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
393389
new DeprecationIssue(
394390
DeprecationIssue.Level.WARNING,
395391
"One or more Transforms write to this old index with a compatibility version < 9.0",
396-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
392+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
397393
+ "#breaking_90_transform_destination_index",
398394
"This index was created in version ["
399395
+ OLD_VERSION.toReleaseVersion()
@@ -409,7 +405,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
409405
new DeprecationIssue(
410406
DeprecationIssue.Level.WARNING,
411407
"One or more Transforms write to this old index with a compatibility version < 9.0",
412-
"https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-9.0.html"
408+
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
413409
+ "#breaking_90_transform_destination_index",
414410
"This index was created in version ["
415411
+ OLD_VERSION.toReleaseVersion()

0 commit comments

Comments
 (0)