Repository navigation
Commit 4485ca1
fix: roll back a failed OAuth2 flush at compile_sqla_query and get_df's first ORM read
Chart data compiles its query right after get_sqla_query's engine lookup, so
the refresh staged there is flushed inside compile_sqla_query, before the
get_df guard. In get_df, the first ORM read (db_engine_spec) preceded the
guarded block, and check_for_oauth2 read the deactivated database and raised
PendingRollbackError over the flush error. Share one rollback context manager
across both sites, widen get_df's guard to cover its first ORM read, and have
check_for_oauth2 re-raise on a deactivated session. Tests now fail a real
flush on the session fixture.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent 1ee4bd1 commit 4485ca1
3 files changed
Lines changed: 96 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1058 | 1074 | | |
1059 | 1075 | | |
1060 | 1076 | | |
| |||
1269 | 1285 | | |
1270 | 1286 | | |
1271 | 1287 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1275 | 1293 | | |
1276 | 1294 | | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | 1295 | | |
1283 | 1296 | | |
1284 | 1297 | | |
| |||
1433 | 1446 | | |
1434 | 1447 | | |
1435 | 1448 | | |
1436 | | - | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1437 | 1454 | | |
1438 | 1455 | | |
1439 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
639 | 643 | | |
640 | 644 | | |
641 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3353 | 3353 | | |
3354 | 3354 | | |
3355 | 3355 | | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
3356 | 3391 | | |
| 3392 | + | |
| 3393 | + | |
3357 | 3394 | | |
3358 | | - | |
3359 | 3395 | | |
3360 | 3396 | | |
3361 | | - | |
3362 | | - | |
3363 | | - | |
3364 | | - | |
3365 | | - | |
| 3397 | + | |
3366 | 3398 | | |
3367 | | - | |
3368 | | - | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
3369 | 3420 | | |
3370 | | - | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
3371 | 3428 | | |
3372 | 3429 | | |
3373 | 3430 | | |
| |||
0 commit comments