Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.11] [Monitoring] Fix newly added cloud link (#89067) #89257

Merged
merged 1 commit into from
Jan 26, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import React from 'react';
import { EuiText, EuiTextColor, EuiLink } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { Legacy } from '../../../legacy_shims';

export const CloudDeployment = () => {
const { ELASTIC_WEBSITE_URL } = Legacy.shims.docLinks;
return (
<EuiTextColor color="subdued">
<EuiText>
Expand All @@ -32,7 +34,7 @@ export const CloudDeployment = () => {
defaultMessage="section for a deployment to configure monitoring. For more information visit "
/>
<EuiLink
href="https://www.elastic.co/guide/en/cloud/current/ec-enable-monitoring.html"
href={`${ELASTIC_WEBSITE_URL}guide/en/cloud/current/ec-enable-logging-and-monitoring.html`}
target="_blank"
>
the documentation page.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ExplainExporters, ExplainExportersCloud } from './exporters';

jest.mock('../../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

describe('ExplainExporters', () => {
test('should explain about xpack.monitoring.exporters setting', () => {
const reason = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ReasonFound } from '.';

jest.mock('../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

const enabler = {};

describe('ReasonFound', () => {
Expand Down