mirror of
https://github.com/apache/superset.git
synced 2026-07-12 09:45:43 +00:00
Two structural changes from the second SQLAlchemy review. No behaviour change; full activity-view suite (70 unit + 30 integration) still green. * Tidy 1 (Warning #2): switch _batch_chart_counts and _batch_datasets_used_by_charts from positional row-unpack to .mappings()-keyed access. Column-rename-safe — a future edit that reorders columns in the SELECT can't silently misassign values during the Python loop. Matches the existing convention in _select_change_rows_for_kinds. * Tidy 2 (Suggestion #1): docstring on _seed_activity_history explaining why it intentionally commits without rollback (unlike the T053 convention in activity_view_tests.py). The seed IS the setup, not the unit under test — the endpoint reads a realistic post-commit state of the shadow tables. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 KiB
17 KiB