fix(dashboard): Support bigint value in native filters (#32549)

This commit is contained in:
JUST.in DO IT
2025-03-12 09:47:41 -07:00
committed by GitHub
parent c8f5089f7a
commit e7721a8c4d
12 changed files with 59 additions and 13 deletions

View File

@@ -98,6 +98,7 @@ class BigNumberVis extends PureComponent<BigNumberVizProps> {
!formatTime ||
!showTimestamp ||
typeof timestamp === 'string' ||
typeof timestamp === 'bigint' ||
typeof timestamp === 'boolean'
)
return null;

View File

@@ -153,7 +153,7 @@ export default function transformProps(
if (!value) {
return NULL_STRING;
}
if (typeof value === 'boolean') {
if (typeof value === 'boolean' || typeof value === 'bigint') {
return String(value);
}
return value;

View File

@@ -183,7 +183,7 @@ export class EchartsChartPlugin<
super({
...restProps,
metadata: new ChartMetadata({
parseMethod: 'json',
parseMethod: 'json-bigint',
...metadata,
}),
});

View File

@@ -363,7 +363,7 @@ export function formatSeriesName(
if (name === undefined || name === null) {
return NULL_STRING;
}
if (typeof name === 'boolean') {
if (typeof name === 'boolean' || typeof name === 'bigint') {
return name.toString();
}
if (name instanceof Date || coltype === GenericDataType.Temporal) {