Require histogram interval in Rollup Job wizard to be a whole number. (#26596) (#26657)

This commit is contained in:
CJ Cenizal 2018-12-04 13:55:31 -08:00 committed by GitHub
parent b4dba24136
commit 1ab8e144df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,15 @@ export function validateHistogramInterval(histogram, histogramInterval) {
)];
}
if (Math.round(histogramInterval) !== histogramInterval) {
return [(
<FormattedMessage
id="xpack.rollupJobs.create.errors.histogramIntervalWholeNumber"
defaultMessage="Interval must be a whole number."
/>
)];
}
if (!histogramInterval) {
return [(
<FormattedMessage