mirror of
https://github.com/apache/superset.git
synced 2026-07-19 21:25:38 +00:00
* T042 test_activity_marks_hard_deleted_chart_with_tombstone (D-15) Edit a chart, hard-delete it via db.session.delete(chart) + commit, hit dashboard activity. Asserts tombstoned record has entity_deleted=True, entity_uuid=None, entity_name preserved from the last shadow row. The fixture's _cleanup tolerates missing slices (uses Slice.id.in_(slice_ids) which silently skips). * T044 test_activity_surfaces_dashboard_restore_event (AV-015) — xfail AV-015 requires sc-103156's restore code to emit a synthetic kind="restore" change record with to_value carrying the source version_uuid + label. sc-103156's restore_version() currently does not — the diff capture surfaces the field changes as kind="field". The activity layer correctly passes through whatever kind sc-103156 emits; the test will start passing once the upstream emission lands. Marked strict=True so the day sc-103156 emits, this fails-to-fail and we know to revisit. * T051 test_activity_excludes_records_after_retention_prune (AV-010) Edit a chart (creates a new version_transaction), backdate that transaction's issued_at past the 30-day retention cutoff, run _prune_old_versions_impl(retention_days=30). Assert the prune removed ≥1 transaction AND the activity endpoint's filtered count decreased. * T039 test_activity_pagination_is_deterministic_and_disjoint (SC-AV-002 pragmatic interpretation). The spec's stricter "no skip/duplicate under concurrent writes" is unprovable with offset pagination — new top-inserted records shift every later page by one. Cursor pagination would solve this (deferred per plan §D-10). Under offset, the testable guarantees are: (a) same request fired twice produces identical pages; (b) page N and page N+1 are disjoint under one request round. Both come from the (issued_at DESC, transaction_id DESC, sequence DESC) sort. Full activity-view suite: 35 passed, 1 xfailed in 46s. The xfail is T044 with the documented sc-103156 dependency. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>