Change execution to run in Rules app (#131026)

This commit is contained in:
Lisa Cawley 2022-05-02 11:51:14 -07:00 committed by GitHub
parent 41a1975e09
commit 90e8795ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View file

@ -38,7 +38,7 @@ const NUM_EXECUTIONS_OPTIONS = [120, 60, 30, 15].map((value) => ({
text: i18n.translate(
'xpack.triggersActionsUI.sections.executionDurationChart.numberOfExecutionsOption',
{
defaultMessage: '{value} executions',
defaultMessage: '{value} runs',
values: {
value,
},
@ -70,7 +70,7 @@ export const ExecutionDurationChart: React.FunctionComponent<ComponentOpts> = ({
<h4>
<FormattedMessage
id="xpack.triggersActionsUI.sections.executionDurationChart.recentDurationsTitle"
defaultMessage="Recent execution durations"
defaultMessage="Recent run durations"
/>
</h4>
</EuiTitle>
@ -84,7 +84,7 @@ export const ExecutionDurationChart: React.FunctionComponent<ComponentOpts> = ({
aria-label={i18n.translate(
'xpack.triggersActionsUI.sections.executionDurationChart.selectNumberOfExecutionDurationsLabel',
{
defaultMessage: 'Select number of executions',
defaultMessage: 'Select number of runs',
}
)}
onChange={onChange}
@ -161,7 +161,7 @@ export const ExecutionDurationChart: React.FunctionComponent<ComponentOpts> = ({
<p>
<FormattedMessage
id="xpack.triggersActionsUI.sections.executionDurationChart.executionDurationNoData"
defaultMessage="There are no available executions for this rule."
defaultMessage="There is no available run duration information for this rule."
/>
</p>
</>

View file

@ -122,7 +122,7 @@ export function RuleComponent({
{
id: EVENT_LOG_LIST_TAB,
name: i18n.translate('xpack.triggersActionsUI.sections.ruleDetails.rule.eventLogTabText', {
defaultMessage: 'Execution history',
defaultMessage: 'Run history',
}),
'data-test-subj': 'eventLogListTab',
content: suspendedComponentWithProps(

View file

@ -488,7 +488,7 @@ export const RuleForm = ({
>
<FormattedMessage
id="xpack.triggersActionsUI.sections.ruleForm.documentationLabel"
defaultMessage="Documentation"
defaultMessage="Learn more"
/>
</EuiLink>
)}

View file

@ -459,7 +459,7 @@ describe('rules_list component with items', () => {
jest.runAllTimers();
wrapper.update();
expect(wrapper.find('.euiToolTipPopover').text()).toBe('Start time of the last execution.');
expect(wrapper.find('.euiToolTipPopover').text()).toBe('Start time of the last run.');
wrapper
.find('[data-test-subj="rulesTableCell-lastExecutionDateTooltip"]')

View file

@ -418,7 +418,7 @@ export const RulesList: React.FunctionComponent = () => {
content={i18n.translate(
'xpack.triggersActionsUI.sections.rulesList.rulesListTable.columns.ruleExecutionPercentileTooltip',
{
defaultMessage: `{percentileOrdinal} percentile of this rule's past {sampleLimit} execution durations (mm:ss).`,
defaultMessage: `{percentileOrdinal} percentile of this rule's past {sampleLimit} run durations (mm:ss).`,
values: {
percentileOrdinal: percentileOrdinals[selectedPercentile!],
sampleLimit: MONITORING_HISTORY_LIMIT,
@ -605,7 +605,7 @@ export const RulesList: React.FunctionComponent = () => {
content={i18n.translate(
'xpack.triggersActionsUI.sections.rulesList.rulesListTable.columns.lastExecutionDateTitle',
{
defaultMessage: 'Start time of the last execution.',
defaultMessage: 'Start time of the last run.',
}
)}
>
@ -761,7 +761,7 @@ export const RulesList: React.FunctionComponent = () => {
content={i18n.translate(
'xpack.triggersActionsUI.sections.rulesList.rulesListTable.columns.successRatioTitle',
{
defaultMessage: 'How often this rule executes successfully.',
defaultMessage: 'How often this rule runs successfully.',
}
)}
>