mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Use current in documentation link service (#208867)
This commit is contained in:
parent
4419390282
commit
bc5e893aae
8 changed files with 9 additions and 9 deletions
|
@ -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'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -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/',
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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
|
||||
>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue