mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix: revert default series limit and update eligible choices (#1430)
* Revert "feat: add default series_limit (#1033)" This reverts commit 5bd2a149644e9ecfeca8e54153eb9e5658546ec3. * Update index.tsx * Update index.tsx
This commit is contained in:
committed by
Yongjie Zhao
parent
66b5b2cf9f
commit
4e3102935c
@@ -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;
|
||||
@@ -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 ' +
|
||||
|
||||
Reference in New Issue
Block a user