Commit Graph
2 Commits
Author SHA1 Message Date
Stephen ZhouandClaude Opus 5.5 ff8e0cfbd0 fix(api): look up initial Source credentials through the datasource credential repository
The moved initial Source import service imported the credential query
implementation directly, which the import-linter contract reserves for
composition and repositories.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:12:18 +08:00
Stephen ZhouandClaude Opus 5.5 0a631944f6 refactor(knowledge-fs): move source edit and initial source import orchestration into services
- Console source PATCH now delegates to services.knowledge_fs.source_edit_service.edit_source,
  which owns re-import detection, sync-policy revision reads, the atomic update, the
  import idempotency key and starting the import workflow.
- Initial Source import operations, KnowledgeFSInitialSourceSubmission and
  KnowledgeFSInitialSourceNotReadyError move to services.knowledge_fs.initial_source_import;
  the Celery task module only invokes them and handles retries, and the dataset upgrade
  service no longer imports from tasks.

Behavior is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:56:04 +08:00