Skip to content

Commit

Permalink
fixed formatting issues pointed by pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Mar 23, 2020
1 parent 8d3feec commit 6eade46
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ export const DurationChartComponent = ({
<FormattedMessage
id="xpack.uptime.monitorCharts.monitorDuration.titleLabelWithAnomaly"
defaultMessage="Monitor duration (Anomalies: {noOfAnomalies})"
description="The 'ms' is an abbreviation for milliseconds."
values={{ noOfAnomalies: anomalies?.anomalies?.length ?? 0 }}
/>
) : (
<FormattedMessage
id="xpack.uptime.monitorCharts.monitorDuration.titleLabel"
defaultMessage="Monitor duration"
description="The 'ms' is an abbreviation for milliseconds."
/>
)}
</h4>
Expand Down

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

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 @@ -59,6 +59,8 @@ export function MLFlyoutView({ isCreatingJob, onClickCreate, onClose, canCreateM
),
}}
/>
</p>
<p>
<em>{labels.TAKE_SOME_TIME_TEXT}</em>
</p>
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@ export const MachineLearningFlyout: React.FC<Props> = ({ onClose }) => {
};

return (
<>
<MLFlyoutView
canCreateMLJob={!!canCreateMLJob}
isCreatingJob={isMLJobCreating}
onClickCreate={createAnomalyJob}
onClose={onClose}
/>
</>
<MLFlyoutView
canCreateMLJob={!!canCreateMLJob}
isCreatingJob={isMLJobCreating}
onClickCreate={createAnomalyJob}
onClose={onClose}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const JOB_DELETION_SUCCESS = i18n.translate(
export const JOB_DELETION_CONFIRMATION = i18n.translate(
'xpack.uptime.ml.enableAnomalyDetectionPanel.jobDeletionConfirmLabel',
{
defaultMessage: 'Delete Anomaly detection job?',
defaultMessage: 'Delete anomaly detection job?',
}
);

Expand Down Expand Up @@ -128,7 +128,7 @@ export const CREAT_ML_JOB_DESC = i18n.translate(
'xpack.uptime.ml.enableAnomalyDetectionPanel.createMLJobDescription',
{
defaultMessage: `Here you can create a machine learning job to calculate anomaly scores on
response durations for Uptime Monitor. Once enabled, The monitor duration chart on details page
response durations for Uptime Monitor. Once enabled, the monitor duration chart on the details page
will show the expected bounds and annotate the graph with anomalies. You can also potentially
identify periods of increased latency across geographical regions.`,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('fetch saga effect factory', () => {
)(calledAction);
let next = fetchEffect.next();

// @ts-ignore TODO, dig dipper for TS issues here
// @ts-ignore TODO, dig deeper for TS issues here
expect(next.value).toEqual(call(fetchStatus, calledAction.payload));

const successResult = put(asyncAction.success(indexStatusResult));
Expand All @@ -52,7 +52,7 @@ describe('fetch saga effect factory', () => {
)(calledAction);
let next = fetchEffect.next();

// @ts-ignore TODO, dig dipper for TS issues here
// @ts-ignore TODO, dig deeper for TS issues here
expect(next.value).toEqual(call(fetchIndexStatus, calledAction.payload));

const errorResult = put(asyncAction.fail(indexStatusResultError));
Expand All @@ -76,7 +76,7 @@ describe('fetch saga effect factory', () => {
)(calledAction);
let next = fetchEffect.next();

// @ts-ignore TODO, dig dipper for TS issues here
// @ts-ignore TODO, dig deeper for TS issues here
expect(next.value).toEqual(call(fetchIndexStatus, calledAction.payload));

const unexpectedErrorResult = put(asyncAction.fail(unExpectedError));
Expand Down

0 comments on commit 6eade46

Please sign in to comment.