Skip to content

Commit

Permalink
Link to the jobs management pages
Browse files Browse the repository at this point in the history
  • Loading branch information
afgomez authored and Alejandro Fernández Gómez committed Aug 18, 2020
1 parent ec9f024 commit d6a9a72
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import React from 'react';
import { SetupStatus } from '../../../../../common/log_analysis';
import { CreateJobButton, RecreateJobButton } from '../../log_analysis_setup/create_job_button';
import { useLinkProps } from '../../../../hooks/use_link_props';
import { getOverallAnomalyExplorerLinkDescriptor } from '../../log_analysis_results/analyze_in_ml_button';

export const LogAnalysisModuleListCard: React.FC<{
jobId: string;
Expand All @@ -34,12 +33,11 @@ export const LogAnalysisModuleListCard: React.FC<{
<EuiIcon color="secondary" size="xxl" type="check" />
);

const viewInMlLinkProps = useLinkProps(
getOverallAnomalyExplorerLinkDescriptor(jobId, {
endTime: Date.now(),
startTime: Date.now() - 86400000 * 14,
})
);
const viewInMlLinkProps = useLinkProps({
app: 'ml',
hash: '/jobs',
search: { mlManagement: `(jobId:${jobId})` },
});

const moduleSetupButton =
moduleStatus.type === 'required' ? (
Expand Down

0 comments on commit d6a9a72

Please sign in to comment.