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

[ML] Adds anomaly time to aria label for anomalies table actions button #32777

Merged
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 @@ -30,6 +30,7 @@ import { getFieldTypeFromMapping } from '../../services/mapping_service';
import { ml } from '../../services/ml_api_service';
import { mlJobService } from '../../services/job_service';
import { getUrlForRecord } from '../../util/custom_url_utils';
import { formatHumanReadableDateTimeSeconds } from '../../util/date_utils';
import { getIndexPatterns } from '../../util/index_utils';
import { replaceStringTokens } from '../../util/string_utils';

Expand Down Expand Up @@ -374,8 +375,8 @@ export const LinksMenu = injectI18n(class LinksMenu extends Component {
iconType="gear"
aria-label={intl.formatMessage({
id: 'xpack.ml.anomaliesTable.linksMenu.selectActionAriaLabel',
defaultMessage: 'Select action',
})}
defaultMessage: 'Select action for anomaly at {time}',
}, { time: formatHumanReadableDateTimeSeconds(anomaly.time) })}
/>
);

Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4646,7 +4646,6 @@
"xpack.ml.anomaliesTable.linksMenu.configureRulesLabel": "配置规则",
"xpack.ml.anomaliesTable.linksMenu.loadingDetailsErrorMessage": "无法查看示例,因为加载有关类别 ID {categoryId} 的详细信息时出错",
"xpack.ml.anomaliesTable.linksMenu.noMappingCouldBeFoundErrorMessage": "无法查看 mlcategory 为 {categoryId} 的文档的示例,因为找不到分类字段 {categorizationFieldName} 的映射",
"xpack.ml.anomaliesTable.linksMenu.selectActionAriaLabel": "选择操作",
"xpack.ml.anomaliesTable.linksMenu.unableToOpenLinkErrorMessage": "无法打开链接,因为加载有关类别 ID {categoryId} 的详细信息时出错",
"xpack.ml.anomaliesTable.linksMenu.unableToViewExamplesErrorMessage": "无法查看示例,因为未找到作业 ID {jobId} 的详细信息",
"xpack.ml.anomaliesTable.linksMenu.viewExamplesLabel": "查看示例",
Expand Down