Skip to content

Commit

Permalink
fix: revert default series limit and update eligible choices (#1430)
Browse files Browse the repository at this point in the history
* Revert "feat: add default series_limit (#1033)"

This reverts commit 5bd2a149644e9ecfeca8e54153eb9e5658546ec3.

* Update index.tsx

* Update index.tsx
  • Loading branch information
john-bodley authored and zhaoyongjie committed Nov 26, 2021
1 parent 66b5b2c commit 4e31029
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const sequentialSchemeRegistry = getSequentialSchemeRegistry();
export const PRIMARY_COLOR = { r: 0, g: 122, b: 135, a: 1 };

const ROW_LIMIT_OPTIONS = [10, 50, 100, 250, 500, 1000, 5000, 10000, 50000];
const SERIES_LIMITS = [0, 5, 10, 25, 50, 100, 500];
const SERIES_LIMITS = [5, 10, 25, 50, 100, 500];

type Control = {
savedMetrics?: Metric[] | null;
Expand Down Expand Up @@ -331,8 +331,8 @@ const limit: SharedControlConfig<'SelectControl'> = {
freeForm: true,
label: t('Series limit'),
validators: [legacyValidateInteger],
default: 100,
choices: formatSelectOptions(SERIES_LIMITS),
clearable: true,
description: t(
'Limits the number of time series that get displayed. A sub query ' +
'(or an extra phase where sub queries are not supported) is applied to limit ' +
Expand Down

0 comments on commit 4e31029

Please sign in to comment.