Commit 8a15ec2
committed
fix(gaq): make async opt-in explicit + fix per-dashboard override persistence
Address review feedback on #43429:
- async opt-in was applied inside the shared v1ChartDataRequest, so direct
callers that read response.json.result (AlertReportModal, ViewQueryModal,
fetchTopNValues, useResultsPane) would receive a 202 {task_ids} and break.
Gate injection on an explicit getChartDataRequest({enableAsyncMode}) that only
the 202-handling callers set (exploreJSON, FilterValue, FiltersConfigForm,
DrillByModal, ChartVersionPreview).
- the dashboard properties async override was never applied when a dashboard
already had json_metadata.async_mode: the editor copy carried it so the
'=== undefined' guard skipped the dropdown. Omit async_mode from the Advanced
JSON editor copy (dropdown is the sole source of truth, mirroring
show_chart_timestamps) and apply the dropdown value unconditionally on save.1 parent 124264b commit 8a15ec2
6 files changed
Lines changed: 36 additions & 10 deletions
File tree
- superset-frontend/src
- components/Chart
- DrillBy
- dashboard/components
- PropertiesModal
- nativeFilters
- FilterBar/FilterControls
- FiltersConfigModal/FiltersConfigForm
- features/versionHistory
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
| |||
502 | 504 | | |
503 | 505 | | |
504 | 506 | | |
| 507 | + | |
| 508 | + | |
505 | 509 | | |
506 | 510 | | |
507 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
286 | 294 | | |
287 | 295 | | |
288 | 296 | | |
| |||
449 | 457 | | |
450 | 458 | | |
451 | 459 | | |
452 | | - | |
453 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
454 | 463 | | |
| 464 | + | |
455 | 465 | | |
456 | 466 | | |
457 | 467 | | |
| |||
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
| 493 | + | |
483 | 494 | | |
484 | 495 | | |
485 | 496 | | |
| 497 | + | |
486 | 498 | | |
487 | 499 | | |
488 | 500 | | |
| |||
743 | 755 | | |
744 | 756 | | |
745 | 757 | | |
| 758 | + | |
| 759 | + | |
746 | 760 | | |
747 | 761 | | |
748 | 762 | | |
| |||
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
0 commit comments