feat: Implement auto-linked content updates in wiki page management
- Introduced UpdateAutoLinkedContent method to persist changes from machine-only link decorators without incrementing the version number, ensuring user-facing revisions remain consistent. - Updated existing methods to utilize the new auto-linked content update logic, enhancing the handling of cross-link injection and dead-link cleanup. - Enhanced the KnowledgeBase and WikiBrowser components to improve user experience during wiki operations, including status tracking and indexing indicators. - Added scheduling for wiki status probes to provide timely feedback on indexing processes after user-triggered actions.
This commit is contained in:
@@ -339,7 +339,7 @@ func (s *WikiLintService) AutoFix(ctx context.Context, kbID string) (int, error)
|
||||
}
|
||||
target := issue.TargetSlug
|
||||
page.Content = strings.ReplaceAll(page.Content, "[["+target+"]]", target)
|
||||
if _, err := s.wikiService.UpdatePage(ctx, page); err == nil {
|
||||
if err := s.wikiService.UpdateAutoLinkedContent(ctx, page); err == nil {
|
||||
fixed++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user