Skip to content

Commit

Permalink
Address jest errs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jan 30, 2021
1 parent bacc288 commit 457a393
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 28 deletions.
7 changes: 3 additions & 4 deletions x-pack/plugins/monitoring/public/components/logs/reason.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { Legacy } from '../../legacy_shims';
import { Monospace } from '../metricbeat_migration/instruction_steps/components/monospace/monospace';

export const Reason = ({ reason }) => {
const { docLinks } = Legacy.shims.docLinks;
const filebeatUrl = docLinks.links.filebeat.installation;
const elasticsearchUrl = docLinks.links.filebeat.elasticsearchModule;
const troubleshootUrl = docLinks.links.monitoring.troubleshootKibana;
const filebeatUrl = Legacy.shims.docLinks.links.filebeat.installation;
const elasticsearchUrl = Legacy.shims.docLinks.links.filebeat.elasticsearchModule;
const troubleshootUrl = Legacy.shims.docLinks.links.monitoring.troubleshootKibana;
let title = i18n.translate('xpack.monitoring.logs.reason.defaultTitle', {
defaultMessage: 'No log data found',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,12 @@ export class Flyout extends Component {

getDocumentationTitle() {
const { productName } = this.props;
const { docLinks } = Legacy.shims.docLinks;

let documentationUrl = null;
if (productName === KIBANA_SYSTEM_ID) {
documentationUrl = docLinks.links.monitoring.monitorKibana;
documentationUrl = Legacy.shims.docLinks.links.monitoring.monitorKibana;
} else if (productName === ELASTICSEARCH_SYSTEM_ID) {
documentationUrl = docLinks.links.monitoring.monitorElasticsearch;
documentationUrl = Legacy.shims.docLinks.links.monitoring.monitorElasticsearch;
}

if (!documentationUrl) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { Legacy } from '../../../../legacy_shims';
import { getMigrationStatusStep, getSecurityStep } from '../common_instructions';

export function getApmInstructionsForEnablingMetricbeat(product, _meta, { esMonitoringUrl }) {
const { docLinks } = Legacy.shims.docLinks;
const metricbeatConfigUrl = docLinks.links.metricbeat.configure;
const metricbeatInstallUrl = docLinks.links.metricbeat.install;
const metricbeatStartUrl = docLinks.links.metricbeat.start;
const metricbeatConfigUrl = Legacy.shims.docLinks.links.metricbeat.configure;
const metricbeatInstallUrl = Legacy.shims.docLinks.links.metricbeat.install;
const metricbeatStartUrl = Legacy.shims.docLinks.links.metricbeat.start;
const securitySetup = getSecurityStep(metricbeatConfigUrl);

const installMetricbeatStep = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ import { Legacy } from '../../../../legacy_shims';
import { getMigrationStatusStep, getSecurityStep } from '../common_instructions';

export function getBeatsInstructionsForEnablingMetricbeat(product, _meta, { esMonitoringUrl }) {
const { docLinks } = Legacy.shims.docLinks;
const metricbeatConfigUrl = docLinks.links.metricbeat.configure;
const metricbeatInstallUrl = docLinks.links.metricbeat.install;
const metricbeatStartUrl = docLinks.links.metricbeat.start;
const httpEndpointUrl = docLinks.links.metricbeat.httpEndpoint;
const metricbeatConfigUrl = Legacy.shims.docLinks.links.metricbeat.configure;
const metricbeatInstallUrl = Legacy.shims.docLinks.links.metricbeat.install;
const metricbeatStartUrl = Legacy.shims.docLinks.links.metricbeat.start;
const httpEndpointUrl = Legacy.shims.docLinks.links.metricbeat.httpEndpoint;
const beatType = product.beatType;
const securitySetup = getSecurityStep(metricbeatConfigUrl);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ export function getElasticsearchInstructionsForEnablingMetricbeat(
_meta,
{ esMonitoringUrl }
) {
const { docLinks } = Legacy.shims.docLinks;
const elasticsearchUrl = docLinks.links.monitoring.monitorElasticsearch;
const metricbeatInstallUrl = docLinks.links.metricbeat.install;
const metricbeatStartUrl = docLinks.links.metricbeat.start;
const elasticsearchUrl = Legacy.shims.docLinks.links.monitoring.monitorElasticsearch;
const metricbeatInstallUrl = Legacy.shims.docLinks.links.metricbeat.install;
const metricbeatStartUrl = Legacy.shims.docLinks.links.metricbeat.start;
const securitySetup = getSecurityStep(elasticsearchUrl);

const installMetricbeatStep = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { Legacy } from '../../../../legacy_shims';
import { getMigrationStatusStep, getSecurityStep } from '../common_instructions';

export function getKibanaInstructionsForEnablingMetricbeat(product, _meta, { esMonitoringUrl }) {
const { docLinks } = Legacy.shims.docLinks;
const kibanaUrl = docLinks.links.monitoring.monitorKibana;
const metricbeatInstallUrl = docLinks.links.metricbeat.install;
const metricbeatStartUrl = docLinks.links.metricbeat.start;
const kibanaUrl = Legacy.shims.docLinks.links.monitoring.monitorKibana;
const metricbeatInstallUrl = Legacy.shims.docLinks.links.metricbeat.install;
const metricbeatStartUrl = Legacy.shims.docLinks.links.metricbeat.start;
const securitySetup = getSecurityStep(kibanaUrl);

const installMetricbeatStep = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { Legacy } from '../../../../legacy_shims';
import { getMigrationStatusStep, getSecurityStep } from '../common_instructions';

export function getLogstashInstructionsForEnablingMetricbeat(product, _meta, { esMonitoringUrl }) {
const { docLinks } = Legacy.shims.docLinks;
const logstashUrl = docLinks.links.monitoring.monitorLogstash;
const metricbeatInstallUrl = docLinks.links.metricbeat.install;
const metricbeatStartUrl = docLinks.links.metricbeat.start;
const logstashUrl = Legacy.shims.docLinks.links.monitoring.monitorLogstash;
const metricbeatInstallUrl = Legacy.shims.docLinks.links.metricbeat.install;
const metricbeatStartUrl = Legacy.shims.docLinks.links.metricbeat.start;
const securitySetup = getSecurityStep(logstashUrl);

const installMetricbeatStep = {
Expand Down

0 comments on commit 457a393

Please sign in to comment.