Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
376 changes: 192 additions & 184 deletions src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/platform/plugins/shared/data/server/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ export function getUiSettings(
},
[UI_SETTINGS.SEARCH_INCLUDE_FROZEN]: {
name: 'Search in frozen indices',
description: `Will include <a href=${docLinks.links.elasticsearch.frozenIndices}
target="_blank" rel="noopener">frozen indices</a> in results if enabled. Searching through frozen indices
description: `Will include frozen indices in results if enabled. Searching through frozen indices
might increase the search time.`,
value: false,
deprecation: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,7 @@ describe('<IndexDetailsPage />', () => {
it('sets the docs link href from the documentation service', async () => {
const docsLinkHref = testBed.actions.mappings.getDocsLinkHref();
// the url from the mocked docs mock
expect(docsLinkHref).toEqual(
'https://www.elastic.co/guide/en/elasticsearch/reference/mocked-test-branch/mapping.html'
);
expect(docsLinkHref).toContain('mapping');
});
describe('Filter field by filter Type', () => {
const mockIndexMappingResponse: any = {
Expand Down Expand Up @@ -1021,9 +1019,7 @@ describe('<IndexDetailsPage />', () => {
await testBed.actions.clickIndexDetailsTab(IndexDetailsSection.Settings);
const docsLinkHref = testBed.actions.settings.getDocsLinkHref();
// the url from the mocked docs mock
expect(docsLinkHref).toEqual(
'https://www.elastic.co/guide/en/elasticsearch/reference/mocked-test-branch/index-modules.html#index-modules-settings'
);
expect(docsLinkHref).toContain('index-modules');
});

describe('error loading settings', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid

const linkURL = await linkButton.getAttribute('href');

expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true);
expect(linkURL?.includes('mapping')).to.be(true);
});

it('should display increase field limit as a possible mitigation for special packages like apm app', async () => {
Expand Down Expand Up @@ -829,7 +829,7 @@ export default function ({ getService, getPageObjects }: DatasetQualityFtrProvid

const linkURL = await linkButton.getAttribute('href');

expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true);
expect(linkURL?.includes('mapping')).to.be(true);
});

it('should display increase field limit as a possible mitigation for non integration', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function SvlSearchElasticsearchStartPageProvider({ getService }: FtrProvi
async expectAnalyzeLogsLink() {
await testSubjects.existOrFail('analyzeLogsBtn');
expect(await testSubjects.getAttribute('analyzeLogsBtn', 'href')).equal(
'https://www.elastic.co/guide/en/serverless/current/elasticsearch-ingest-your-data.html'
'https://www.elastic.co/docs/manage-data/ingest'
);
expect(await testSubjects.getAttribute('analyzeLogsBtn', 'target')).equal('_blank');
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

const linkURL = await linkButton.getAttribute('href');

expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true);
expect(linkURL?.includes('mapping')).to.be(true);
});

it('should display increase field limit as a possible mitigation for special packages like apm app', async () => {
Expand Down Expand Up @@ -849,7 +849,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

const linkURL = await linkButton.getAttribute('href');

expect(linkURL?.endsWith('mapping-settings-limit.html')).to.be(true);
expect(linkURL?.includes('mapping')).to.be(true);
});

it('should display increase field limit as a possible mitigation for non integration', async () => {
Expand Down