Skip to content

Commit dfb4c33

Browse files
authored
Use short URLs for legacy plugin deprecation warning (#64540)
1 parent d5c1812 commit dfb4c33

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/core/server/legacy/plugins/log_legacy_plugins_warning.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('logLegacyThirdPartyPluginDeprecationWarning', () => {
4848
expect(log.warn).toHaveBeenCalledTimes(1);
4949
expect(log.warn.mock.calls[0]).toMatchInlineSnapshot(`
5050
Array [
51-
"Some installed third party plugin(s) [plugin] are using the legacy plugin format and will no longer work in a future Kibana release. Please refer to https://www.elastic.co/guide/en/kibana/master/breaking-changes-8.0.html for a list of breaking changes and https://github.com/elastic/kibana/blob/master/src/core/MIGRATION.md for documentation on how to migrate legacy plugins.",
51+
"Some installed third party plugin(s) [plugin] are using the legacy plugin format and will no longer work in a future Kibana release. Please refer to https://ela.st/kibana-breaking-changes-8-0 for a list of breaking changes and https://ela.st/kibana-platform-migration for documentation on how to migrate legacy plugins.",
5252
]
5353
`);
5454
});
@@ -65,7 +65,7 @@ describe('logLegacyThirdPartyPluginDeprecationWarning', () => {
6565
expect(log.warn).toHaveBeenCalledTimes(1);
6666
expect(log.warn.mock.calls[0]).toMatchInlineSnapshot(`
6767
Array [
68-
"Some installed third party plugin(s) [pluginA, pluginB, pluginC] are using the legacy plugin format and will no longer work in a future Kibana release. Please refer to https://www.elastic.co/guide/en/kibana/master/breaking-changes-8.0.html for a list of breaking changes and https://github.com/elastic/kibana/blob/master/src/core/MIGRATION.md for documentation on how to migrate legacy plugins.",
68+
"Some installed third party plugin(s) [pluginA, pluginB, pluginC] are using the legacy plugin format and will no longer work in a future Kibana release. Please refer to https://ela.st/kibana-breaking-changes-8-0 for a list of breaking changes and https://ela.st/kibana-platform-migration for documentation on how to migrate legacy plugins.",
6969
]
7070
`);
7171
});

src/core/server/legacy/plugins/log_legacy_plugins_warning.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import { LegacyPluginSpec } from '../types';
2222

2323
const internalPaths = ['/src/legacy/core_plugins', '/x-pack'];
2424

25-
const breakingChangesUrl =
26-
'https://www.elastic.co/guide/en/kibana/master/breaking-changes-8.0.html';
27-
const migrationGuideUrl = 'https://github.com/elastic/kibana/blob/master/src/core/MIGRATION.md';
25+
// Use shortened URLs so destinations can be updated if/when documentation moves
26+
// All platform team members have access to edit these
27+
const breakingChangesUrl = 'https://ela.st/kibana-breaking-changes-8-0';
28+
const migrationGuideUrl = 'https://ela.st/kibana-platform-migration';
2829

2930
export const logLegacyThirdPartyPluginDeprecationWarning = ({
3031
specs,

0 commit comments

Comments
 (0)