Use current in documentation link service (#208867)

This commit is contained in:
Lisa Cawley 2025-01-30 11:56:24 -08:00 committed by GitHub
parent 4419390282
commit bc5e893aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 9 additions and 9 deletions

View file

@ -12,7 +12,7 @@ import { getDocLinksMeta } from './get_doc_meta';
describe('getDocLinksMeta', () => {
it('returns the correct version for the `main` branch', () => {
expect(getDocLinksMeta({ kibanaBranch: 'main', buildFlavor: 'traditional' }).version).toEqual(
'master'
'current'
);
});

View file

@ -19,7 +19,7 @@ export const getDocLinksMeta = ({
buildFlavor,
}: GetDocLinksMetaOptions): DocLinksMeta => {
return {
version: kibanaBranch === 'main' ? 'master' : kibanaBranch,
version: kibanaBranch === 'main' ? 'current' : kibanaBranch,
ecs_version: 'current',
elasticWebsiteUrl: 'https://www.elastic.co/',
elasticGithubUrl: 'https://github.com/elastic/',

View file

@ -98,7 +98,7 @@ describe('AiAssistantSelectionPage', () => {
screen.getByTestId('pluginsAiAssistantSelectionPageDocumentationLink')
).toHaveAttribute(
'href',
'https://www.elastic.co/guide/en/observability/master/obs-ai-assistant.html'
'https://www.elastic.co/guide/en/observability/current/obs-ai-assistant.html'
);
});
});
@ -144,7 +144,7 @@ describe('AiAssistantSelectionPage', () => {
screen.getByTestId('securityAiAssistantSelectionPageDocumentationLink')
).toHaveAttribute(
'href',
'https://www.elastic.co/guide/en/security/master/security-assistant.html'
'https://www.elastic.co/guide/en/security/current/security-assistant.html'
);
});
});

View file

@ -79,7 +79,7 @@ export function LayerSettingsPanel({
values={{
link: (
<EuiLink
href="https://www.elastic.co/guide/en/elasticsearch/reference/master/search-aggregations-random-sampler-aggregation.html"
href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-random-sampler-aggregation.html"
target="_blank"
external
>

View file

@ -151,7 +151,7 @@ const MLJobsAwaitingNodeWarning: FC<Props> = ({ jobIds }) => {
link: (
<EuiLink
href={
'https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-node.html#ml-node'
'https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#ml-node'
}
>
<FormattedMessage

View file

@ -7,7 +7,7 @@
import { getTailSamplingSettings, isTailBasedSamplingValid } from './tail_sampling_settings';
const DOCS_LINK =
'https://www.elastic.co/guide/en/apm/guide/master/configure-tail-based-sampling.html';
'https://www.elastic.co/guide/en/apm/guide/current/configure-tail-based-sampling.html';
describe('tail_sampling_settings - isTailBasedSamplingFormValid', () => {
it('return true when tail_sampling_interval is greater than 1s', () => {

View file

@ -410,7 +410,7 @@ EOF`}
<EuiLink
data-test-subj="profilingAddDataViewInstructionsHereLink"
target="_blank"
href={`https://www.elastic.co/guide/en/kibana/master/api-keys.html`}
href={`https://www.elastic.co/guide/en/kibana/current/api-keys.html`}
>
{i18n.translate('xpack.profiling.tabs.symbols.step2.instructions', {
defaultMessage: 'Instructions here',

View file

@ -232,7 +232,7 @@ export const ParamsList = () => {
learnMore: (
<EuiLink
data-test-subj="syntheticsParamsListLink"
href="https://www.elastic.co/guide/en/observability/master/synthetics-params-secrets.html"
href="https://www.elastic.co/guide/en/observability/current/synthetics-params-secrets.html"
target="_blank"
>
{LEARN_MORE}