Skip to content

docs: clarify cleanup command only targets -odd/-even suffixed indices#446

Closed
kingjia90 with Copilot wants to merge 4 commits into
2026.xfrom
copilot/fix-review-comment-3303032046
Closed

docs: clarify cleanup command only targets -odd/-even suffixed indices#446
kingjia90 with Copilot wants to merge 4 commits into
2026.xfrom
copilot/fix-review-comment-3303032046

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The Cleaning Up Unused Indices docs section described the command as deleting "old indices that are not referenced by any alias" — implying any unaliased index could be removed. The implementation only targets indices matching <configured-prefix>*-(odd|even).

Changes

  • doc/02_Configuration/03_Index_Management.md: Rewrites the section intro to specify the prefix and -odd/-even suffix constraint, and adds an explicit note that custom indices under the same prefix without this suffix are unaffected.

cancan101 and others added 3 commits June 29, 2026 10:45
- add generic-data-index:cleanup:unused-indices command
- default behavior deletes unmanaged stale -odd/-even indices not referenced by aliases
- add --dry-run option to preview deletions without changes
- implement UnusedIndexCleanupService to detect candidates via prefix + alias diff
- add unit tests for selection, dry-run, and execute behavior
- document new cleanup command in index management docs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: JiaJia Ji <kingjia90@gmail.com>
Copilot AI changed the title [WIP] Fix code as per review comment 3303032046 docs: clarify cleanup command only targets -odd/-even suffixed indices Jun 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
2 New Major Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copilot AI requested a review from kingjia90 June 29, 2026 10:46
@kingjia90 kingjia90 closed this Jun 29, 2026
@kingjia90 kingjia90 deleted the copilot/fix-review-comment-3303032046 branch June 29, 2026 12:58
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants