Skip to content

fix(datasource): invalidate cursor for deleted knowledge#1643

Open
langcaiye wants to merge 1 commit into
Tencent:mainfrom
langcaiye:fix/datasource-cursor-delete
Open

fix(datasource): invalidate cursor for deleted knowledge#1643
langcaiye wants to merge 1 commit into
Tencent:mainfrom
langcaiye:fix/datasource-cursor-delete

Conversation

@langcaiye

@langcaiye langcaiye commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • invalidate data source incremental cursor entries when synced knowledge is deleted
  • use datasource metadata (datasource_id, external_id, source_resource_id) to target the affected upstream item
  • add repository coverage for Feishu resource-scoped cursors and generic external-id cursors

Tests

  • go test ./internal/application/repository -run 'TestDataSourceRepository|TestSyncLogRepository'
  • go test ./internal/application/service
  • go test ./internal/container

@langcaiye langcaiye force-pushed the fix/datasource-cursor-delete branch from 532c804 to 25c78e2 Compare June 11, 2026 02:25
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.

1 participant