mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[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:
parent
f959011d09
commit
7e4c1710db
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue