Skip to content

Drop pivot slicer and timeline caches over a removed pivot (#1797) - #1819

Merged
yeroo merged 3 commits into
mainfrom
issue-1797-leftovers-from-1741-bug-renaming
Oct 26, 2026
Merged

yeroo merged 3 commits into
mainfrom
issue-1797-leftovers-from-1741-bug-renaming

Conversation

@yeroo

@yeroo yeroo commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Closes #1797

What changed

  • Pivot slicer and timeline caches over a removed pivot (plan-pivot-slicers): a leak confirmed on main. remove_pivot (directly or through remove_sheet) notes the pivot's (sheetId, name); the save then drops caches whose every pivotTable entry is removed, with their slicers/timelines, drawing anchors, workbook rel and entry, and Slicer_/NativeTimeline_ names. A cache that also filters a surviving pivot only loses the removed entries. The table-slicer dropper is shared (drop_slicer_caches), table behaviour unchanged.
  • remove_pivot keeps a pivot cache another pivot shares (found in review).
  • Model names (plan-model-slicer-names): decided to keep Slicer_ names in the model (save takes the package immutably; forgetting at edit time would disturb gridwasm's stash positions). The one host list of names, the suite's Go To, hides Slicer_*/NativeTimeline_* names whose formula is #N/A.
  • CLAUDE.md: "Pivot slicer and timeline caches on save (Leftovers from #1741: bug: renaming a table header does not rewrite structured references, and deleting table columns leaves stale references and table parts #1797)".

Testing

New gridcore tests (fixtures are synthetic, no Excel oracle) and a suite Go To test; cargo test --workspace and the suite workspace on the head.

Review record

revmux rounds: 2. Round 1: 1 Major (add_pivot un-noted a removed pivot; fixed), 2 minor and 1 pre-existing (shared cache; all fixed here). Round 2: no Major, 2 minor, fixed.

…es slicer names (#1797)

remove_pivot notes (sheetId, name); the save strikes caches whose pivots all
went, sharing drop_slicer_caches with table slicers. Slicer_/NativeTimeline_
names stay in the model and are left out of Go To.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArREqgv5wq19er5zSt2H5f
…ides only #N/A cache names (#1797 r1)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArREqgv5wq19er5zSt2H5f
…its test (#1797 r2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArREqgv5wq19er5zSt2H5f
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 98.94958% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
gridcore/src/xlsx.rs 98.94% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@yeroo
yeroo merged commit acbb34f into main Oct 26, 2026
14 checks passed
@yeroo
yeroo deleted the issue-1797-leftovers-from-1741-bug-renaming branch October 26, 2026 18:23
@yeroo

yeroo commented Oct 26, 2026

Copy link
Copy Markdown
Owner Author

Merged automatically (auto-merge is on for this checkout): review stopped: round 2 had no Major; all findings fixed, no follow-ups; merge rounds: none; whole suite green on 694bbf0 (workspace tests plus suite workspace: 2692 passed, 0 failures); CI 14 passed; merge-check ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants