Commit 73d370d
committed
fix(dashboards): unblock filter autocomplete + drop drifty test expect
Two fixes for #2383 CI:
1. DashboardFiltersModal default-value picker no longer issues a query
when the resolved table name is empty. A metric source with no
metricType picked yet resolves `getMetricTableName` to
`source.from.tableName`, which is typically empty on a metric source.
Firing the autocomplete in that state produces a malformed
`DESCRIBE {db}.{}` (empty Identifier substitution) that the
ClickHouse proxy rejects with a 500. The e2e shard 2 trace shows
exactly this 500 firing during filter editing, which left the
dashboard filter chip dropdowns disabled long enough to time out the
click-the-option waits. Gating on `tableName` keeps the picker idle
until the form is configured enough to name a real table.
2. The external API HDX-4404 round-trip test asserted
`whereLanguage: 'sql'` on the response for filters whose input payload
omits `whereLanguage`. The Zod schema is `.optional()` with no
default, so the wire format is undefined-in / undefined-out. The
previous expectation made the test fail by asserting a default the
schema never emits. Dropped the field from those three filter
expects and from the PUT-flip filter expect; added a comment so the
omission is intentional.1 parent 21880e4 commit 73d370d
2 files changed
Lines changed: 16 additions & 5 deletions
File tree
- packages
- api/src/routers/external-api/__tests__
- app/src
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
965 | 971 | | |
966 | 972 | | |
967 | 973 | | |
968 | 974 | | |
969 | 975 | | |
970 | 976 | | |
971 | | - | |
972 | 977 | | |
973 | 978 | | |
974 | 979 | | |
| |||
978 | 983 | | |
979 | 984 | | |
980 | 985 | | |
981 | | - | |
982 | 986 | | |
983 | 987 | | |
984 | 988 | | |
| |||
991 | 995 | | |
992 | 996 | | |
993 | 997 | | |
994 | | - | |
995 | 998 | | |
996 | 999 | | |
997 | 1000 | | |
| |||
1041 | 1044 | | |
1042 | 1045 | | |
1043 | 1046 | | |
1044 | | - | |
1045 | 1047 | | |
1046 | 1048 | | |
1047 | 1049 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
367 | 375 | | |
368 | | - | |
| 376 | + | |
369 | 377 | | |
370 | 378 | | |
371 | 379 | | |
| |||
386 | 394 | | |
387 | 395 | | |
388 | 396 | | |
| 397 | + | |
389 | 398 | | |
390 | 399 | | |
391 | 400 | | |
| |||
0 commit comments