[Uptime] Set min/max on search size for pings. (#28113)

You obviously can't show fewer than 0 and 10k is the ES max.
This commit is contained in:
Andrew Cholakian 2019-01-08 08:46:46 -08:00 committed by GitHub
parent f959011d09
commit 7e4c1710db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,8 @@ export class Pings extends React.Component<PingListProps, PingListState> {
<EuiFormRow label="Max Search Size">
<EuiFieldNumber
defaultValue={this.state.maxSearchSize.toString()}
min={0}
max={10000} // 10k is the max default size in ES, and a good max sane size for this page
onBlur={e => {
const sanitizedValue = parseInt(e.target.value, 10);
if (!isNaN(sanitizedValue)) {