【字段确认】阶段2 入库前需确认的资料追溯字段 #52

Closed
opened 2026-10-17 21:57:20 +08:00 by yxx · 2 comments
Collaborator

关联:docs/knowledge/field-feedback.md(阶段1 字段核对记录)

阶段1 字段核对发现 3 处差异,需在阶段 2 正式入库前确认,现列出供讨论:

1. 来源名称展示与 source_id 选择

现状:知识条目只有 source_url,来源名称需先在「来源管理」登记 sources 再关联;前端知识表单目前只显示「来源网址」,未暴露 source_id 选择。
建议:知识录入时支持选择已登记来源(source_id),列表同时显示来源名称与网址。
涉及: @saint 、 @Kronecker 。

2. collected_at 采集时间必填

现状:documents.collected_at 必填,knowledge.collected_at 允许为空;前端已有「采集时间」输入。
建议:知识条目也要求填写采集时间,或强制关联到含采集时间的文档,以满足来源追溯。
涉及: @Kronecker (后端校验)。

3. knowledge_items 增加通用 notes 字段

现状:知识条目只有 verification_notes(核验说明),无通用备注;sources/documents 有 notes。
建议:给知识条目增加 notes 字段,用于记录「过期时间、待二次确认」等非审核类备注。
涉及: @Kronecker (需评估,仅建议,不直接改库)。

待确认

  • 上述 3 项是否采纳、如何实现(尤其第 3 项是否需要新增数据库字段/迁移)。
  • 若采纳,请在此 Issue 说明负责人、目标分支与预计完成时间。
关联:docs/knowledge/field-feedback.md(阶段1 字段核对记录) 阶段1 字段核对发现 3 处差异,需在阶段 2 正式入库前确认,现列出供讨论: ## 1. 来源名称展示与 source_id 选择 现状:知识条目只有 source_url,来源名称需先在「来源管理」登记 sources 再关联;前端知识表单目前只显示「来源网址」,未暴露 source_id 选择。 建议:知识录入时支持选择已登记来源(source_id),列表同时显示来源名称与网址。 涉及: @saint 、 @Kronecker 。 ## 2. collected_at 采集时间必填 现状:documents.collected_at 必填,knowledge.collected_at 允许为空;前端已有「采集时间」输入。 建议:知识条目也要求填写采集时间,或强制关联到含采集时间的文档,以满足来源追溯。 涉及: @Kronecker (后端校验)。 ## 3. knowledge_items 增加通用 notes 字段 现状:知识条目只有 verification_notes(核验说明),无通用备注;sources/documents 有 notes。 建议:给知识条目增加 notes 字段,用于记录「过期时间、待二次确认」等非审核类备注。 涉及: @Kronecker (需评估,仅建议,不直接改库)。 ## 待确认 - 上述 3 项是否采纳、如何实现(尤其第 3 项是否需要新增数据库字段/迁移)。 - 若采纳,请在此 Issue 说明负责人、目标分支与预计完成时间。
Kronecker was assigned by yxx 2026-10-17 21:57:20 +08:00
saint was assigned by yxx 2026-10-17 21:57:20 +08:00
yxx changed title from 【字段确认】阶段2 入库前需确认的资料追溯字段(杨星萱) to 【字段确认】阶段2 入库前需确认的资料追溯字段 2026-10-17 21:58:06 +08:00
Kronecker was unassigned by yxx 2026-10-19 22:12:34 +08:00
saint was unassigned by yxx 2026-10-19 22:12:34 +08:00
Owner

Decision recorded: source selection and display are tracked in #57. Keep collected_at optional for drafts and required before verified status. Defer a general knowledge notes field. No sensitive data is included.

Decision recorded: source selection and display are tracked in #57. Keep collected_at optional for drafts and required before verified status. Defer a general knowledge notes field. No sensitive data is included.
Owner

Completed in merged PR #59: approved field decisions are recorded in the knowledge traceability document. No sensitive data is included.

Completed in merged PR #59: approved field decisions are recorded in the knowledge traceability document. No sensitive data is included.
saint closed this issue 2026-10-19 22:47:09 +08:00
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saint/border-red-post-nalati#52