diff --git a/packages/jaeger-ui/src/components/SearchTracePage/SearchForm.js b/packages/jaeger-ui/src/components/SearchTracePage/SearchForm.js index 0582b55de8..5e3a5630d4 100644 --- a/packages/jaeger-ui/src/components/SearchTracePage/SearchForm.js +++ b/packages/jaeger-ui/src/components/SearchTracePage/SearchForm.js @@ -34,7 +34,7 @@ import * as jaegerApiActions from '../../actions/jaeger-api'; import { formatDate, formatTime } from '../../utils/date'; import reduxFormFieldAdapter from '../../utils/redux-form-field-adapter'; import { DEFAULT_OPERATION, DEFAULT_LIMIT, DEFAULT_LOOKBACK } from '../../constants/search-form'; - +import getConfigValue from '../../utils/config/get-config'; import './SearchForm.css'; const FormItem = Form.Item; @@ -443,7 +443,7 @@ export class SearchFormImpl extends React.PureComponent { type="number" component={AdaptedInput} placeholder="Limit Results" - props={{ disabled, min: 1, max: 1500 }} + props={{ disabled, min: 1, max: getConfigValue('search.maxLimit') }} /> diff --git a/packages/jaeger-ui/src/constants/default-config.tsx b/packages/jaeger-ui/src/constants/default-config.tsx index a7b332cb89..5dfe342092 100644 --- a/packages/jaeger-ui/src/constants/default-config.tsx +++ b/packages/jaeger-ui/src/constants/default-config.tsx @@ -61,6 +61,7 @@ export default deepFreeze( label: '2 Days', value: '2d', }, + maxLimit: 1500, }, tracking: { gaID: null, diff --git a/packages/jaeger-ui/src/types/config.tsx b/packages/jaeger-ui/src/types/config.tsx index b700c8a45e..d0fc4a3f5e 100644 --- a/packages/jaeger-ui/src/types/config.tsx +++ b/packages/jaeger-ui/src/types/config.tsx @@ -42,7 +42,7 @@ export type Config = { deepDependencies?: { menuEnabled?: boolean }; dependencies?: { dagMaxServicesLen?: number; menuEnabled?: boolean }; menu: (ConfigMenuGroup | ConfigMenuItem)[]; - search?: { maxLookback: { label: string; value: string } }; + search?: { maxLookback: { label: string; value: string }; maxLimit: number }; scripts?: TScript[]; topTagPrefixes?: string[]; tracking?: {