Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Oct 26, 2023
1 parent ea2a25c commit d6aaece
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export const SearchResponseWarningsBadgePopoverContent = (props: Props) => {
</EuiButtonEmpty>
</EuiPanel>
</EuiContextMenuPanel>
)
}
)}
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,26 @@ export function getWarningsDescription(
visualizationLabel?: string
) {
const nonSuccessfulClusters = getNonSuccessfulClusters(warnings);
const clusterStatement = nonSuccessfulClusters.size <= 1
? i18n.translate('searchResponseWarnings.description.clusterStatement.singleCluster', {
defaultMessage:
'This cluster had issues returning data.',
})
: i18n.translate('searchResponseWarnings.description.clusterStatement.multipleClusters', {
defaultMessage:
'These clusters had issues returning data.',
});
return clusterStatement + ' ' + i18n.translate('searchResponseWarnings.description.consequenceStatement', {
defaultMessage:
'This might result in an incomplete {visualizationLabel}.',
values: {
visualizationLabel: visualizationLabel
? visualizationLabel
: i18n.translate('searchResponseWarnings.description.defaultVisualizationLabel', {
defaultMessage: 'visualization',
}),
},
});
const clusterStatement =
nonSuccessfulClusters.size <= 1
? i18n.translate('searchResponseWarnings.description.clusterStatement.singleCluster', {
defaultMessage: 'This cluster had issues returning data.',
})
: i18n.translate('searchResponseWarnings.description.clusterStatement.multipleClusters', {
defaultMessage: 'These clusters had issues returning data.',
});
return (
clusterStatement +
' ' +
i18n.translate('searchResponseWarnings.description.consequenceStatement', {
defaultMessage: 'This might result in an incomplete {visualizationLabel}.',
values: {
visualizationLabel: visualizationLabel
? visualizationLabel
: i18n.translate('searchResponseWarnings.description.defaultVisualizationLabel', {
defaultMessage: 'visualization',
}),
},
})
);
}

0 comments on commit d6aaece

Please sign in to comment.