Skip to content

Commit

Permalink
[ML] Fix Latest timestamp column in the Anomaly Detection jobs table (#…
Browse files Browse the repository at this point in the history
…137280)

* fix position of the AD and SMV buttons

* show actions column header

* remove unused class
  • Loading branch information
darnautov authored Jul 27, 2022
1 parent 52d52b1 commit 34b5a2f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
@import 'components/job_details/index'; // SASSTODO: Dangerous EUI overwrites
@import 'components/job_filter_bar/index'; // SASSTODO: Dangerous EUI overwrites
@import 'components/job_group/index';
@import 'components/jobs_list/index'; // SASSTODO: Dangerous EUI overwrites
@import 'components/jobs_list_view/index';
@import 'components/multi_job_actions/index'; // SASSTODO: Dangerous EUI overwrites
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function ResultLinks({ jobs }) {
href={timeSeriesExplorerLink}
iconType="visLine"
aria-label={openJobsInSingleMetricViewerText}
className="results-button"
isDisabled={singleMetricEnabled === false || jobActionsDisabled === true}
data-test-subj="mlOpenJobsInSingleMetricViewerButton"
/>
Expand All @@ -88,7 +87,6 @@ export function ResultLinks({ jobs }) {
href={anomalyExplorerLink}
iconType="visTable"
aria-label={openJobsInAnomalyExplorerText}
className="results-button"
isDisabled={jobActionsDisabled === true}
data-test-subj="mlOpenJobsInAnomalyExplorerButton"
/>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class JobsList extends Component {
</p>
</EuiScreenReaderOnly>
),
'data-test-subj': 'mlJobListColumnExpand',
render: (item) => (
<EuiButtonIcon
onClick={() => this.toggleRow(item)}
Expand Down Expand Up @@ -195,6 +196,7 @@ export class JobsList extends Component {
},
{
field: 'auditMessage',
'data-test-subj': 'mlJobListColumnIcons',
name: (
<EuiScreenReaderOnly>
<p>
Expand All @@ -209,6 +211,7 @@ export class JobsList extends Component {
},
{
field: 'alertingRules',
'data-test-subj': 'mlJobListColumnAlertingRuleIndicator',
name: (
<EuiScreenReaderOnly>
<p>
Expand Down Expand Up @@ -292,13 +295,6 @@ export class JobsList extends Component {
truncateText: false,
width: '8%',
},
{
name: i18n.translate('xpack.ml.jobsList.actionsLabel', {
defaultMessage: 'Actions',
}),
render: (item) => <ResultLinks jobs={[item]} />,
width: '8%',
},
{
name: i18n.translate('xpack.ml.jobsList.latestTimestampLabel', {
defaultMessage: 'Latest timestamp',
Expand Down Expand Up @@ -328,6 +324,13 @@ export class JobsList extends Component {
</p>
</EuiScreenReaderOnly>
),
render: (item) => <ResultLinks jobs={[item]} />,
width: '64px',
},
{
name: i18n.translate('xpack.ml.jobsList.actionsLabel', {
defaultMessage: 'Actions',
}),
actions: actionsMenuContent(
this.props.showEditJobFlyout,
this.props.showDatafeedChartFlyout,
Expand All @@ -339,7 +342,7 @@ export class JobsList extends Component {
this.props.refreshJobs,
this.props.showCreateAlertFlyout
),
width: '40px',
width: '5%',
},
];

Expand Down

0 comments on commit 34b5a2f

Please sign in to comment.