mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(big number with trendline): running 2 identical queries for no good reason (#34296)
This commit is contained in:
committed by
GitHub
parent
8de8f95a3c
commit
0964a8bb7a
@@ -128,9 +128,10 @@ describe('BigNumberWithTrendline', () => {
|
||||
expect(lastDatum?.[0]).toStrictEqual(100);
|
||||
expect(lastDatum?.[1]).toBeNull();
|
||||
|
||||
// should note this is a fallback
|
||||
// should get the last non-null value
|
||||
expect(transformed.bigNumber).toStrictEqual(1.2345);
|
||||
expect(transformed.bigNumberFallback).not.toBeNull();
|
||||
// bigNumberFallback is only set when bigNumber is null after aggregation
|
||||
expect(transformed.bigNumberFallback).toBeNull();
|
||||
|
||||
// should successfully formatTime by granularity
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user