Skip to content

test: update search index after move#1020

Merged
perber merged 2 commits into
mainfrom
tests/add-test-to-update-search-index-after-move
May 22, 2026
Merged

test: update search index after move#1020
perber merged 2 commits into
mainfrom
tests/add-test-to-update-search-index-after-move

Conversation

@perber

@perber perber commented May 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 22, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR strengthens coverage for the pagesave.SearchIndexSideEffect by adding tests that ensure the search index is updated correctly for move operations and for recursive deletes (subtree removal), while also cleaning up an unused variable in an existing bootstrap test.

Changes:

  • Remove an unused treeSvc variable in IndexAllPages_ClearsStaleEntries.
  • Add a test ensuring recursive delete events remove all affected pages from the search index.
  • Add a test ensuring a moved page remains searchable and its indexed path reflects the new location.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/wiki/pagesave/search_effect_test.go Outdated
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@perber
perber merged commit d2babaf into main May 22, 2026
6 checks passed
@perber
perber deleted the tests/add-test-to-update-search-index-after-move branch May 22, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants