fix(charts): Table chart shows an error on row limit (#37218)

This commit is contained in:
Felipe López
2026-01-30 16:45:50 -03:00
committed by GitHub
parent 570cc3e5f8
commit 9764a84402
18 changed files with 105 additions and 26 deletions

View File

@@ -52,6 +52,7 @@ import {
SMART_DATE_ID,
validateMaxValue,
validateServerPagination,
withLabel,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { isEmpty, last } from 'lodash';
@@ -407,7 +408,7 @@ const config: ControlPanelConfig = {
description: t('Rows per page, 0 means no pagination'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
Boolean(controls?.server_pagination?.value),
validators: [validateInteger],
validators: [withLabel(validateInteger, t('Server Page Length'))],
},
},
],
@@ -426,7 +427,7 @@ const config: ControlPanelConfig = {
state?.common?.conf?.SQL_MAX_ROW,
}),
validators: [
validateInteger,
withLabel(validateInteger, t('Row limit')),
(v, state) =>
validateMaxValue(
v,
@@ -448,9 +449,6 @@ const config: ControlPanelConfig = {
'Limits the number of the rows that are computed in the query that is the source of the data used for this chart.',
),
},
override: {
default: 1000,
},
},
],
[