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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be removed soon anyway, but I'm guessing we wouldn't want to keep a link to the old docs until then, would we?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, if we need to keep a URL we'd have to point it to one of the V8 doc pages.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for confirming. I think we're good to remove it since we don't want to promote it, and the setting is going away soon anyway. cc @lukasolson for awareness just in case you have thoughts.

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 @@ -1023,9 +1021,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 @@ -75,7 +75,7 @@ export const AdvancedFieldMappingOptions = ({
link: (
<EuiLink
data-test-subj="streamsAppAdvancedFieldMappingOptionsViewDocumentationLink"
href={core.docLinks.links.elasticsearch.docsBase.concat('mapping-params.html')}
href={core.docLinks.links.elasticsearch.mappingParameters}
target="_blank"
external
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,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 @@ -838,7 +838,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 @@ -97,7 +97,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 @@ -828,7 +828,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 @@ -858,7 +858,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