fix: face group name read consistency, sync_file_status fix, cleanup ghost records, identity_agent replaced with face_dedup
- get_face_groups_handler: COALESCE(tp.name, tn.label) for name consistency - sync_file_status: compare JSON vs pre_chunks (not chunk table) - face consistency: compare frames.len() not total_faces - cleanup 2 ghost records with NULL file_name/file_path - replace identity_agent with face_dedup in pipeline stages - remove identity_agent_api.rs and all references - update required_processors to match actual processors - update AGENTS.md with team responsibilities - add Studio pipeline changes documentation
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# Status Terminology Mapping
|
||||
|
||||
## 資料庫狀態 (Database Status)
|
||||
|
||||
| 狀態值 | 中文顯示 | 說明 |
|
||||
|--------|----------|------|
|
||||
| `pending` | 待處理 | 已註冊,等待開始處理 |
|
||||
| `processing` | 處理中 | 正在進行 Deep Scan(深度掃描)|
|
||||
| `completed` | 已完成 | 所有處理步驟完成 |
|
||||
| `unregistered` | 未註冊 | 在磁碟上但未註冊到系統 |
|
||||
|
||||
## 術語對照
|
||||
|
||||
### "Processing" = "Deep Scan"
|
||||
|
||||
兩者指同一件事:
|
||||
|
||||
| 資料庫 | API | UI 顯示 | 用戶理解 |
|
||||
|--------|-----|----------|----------|
|
||||
| `processing` | `"status": "processing"` | 🔄 處理中 | 正在進行深度掃描 |
|
||||
|
||||
### 建議統一用語
|
||||
|
||||
**在程式碼與 API**:
|
||||
- 使用 `processing`
|
||||
|
||||
**在 UI 顯示**:
|
||||
- 使用 "處理中" 或 "Deep Scan"
|
||||
- 避免使用 "Scanning" 以免混淆
|
||||
|
||||
**在文件**:
|
||||
- "Deep Scan" 或 "處理中"
|
||||
|
||||
## 目前問題
|
||||
|
||||
UI 某處顯示 "Status: Scanning",但資料庫實際是 `processing`。
|
||||
|
||||
### 需要確認
|
||||
1. 在哪個頁面看到 "Status: Scanning"?
|
||||
2. 是固定顯示還是暫時狀態?
|
||||
|
||||
## 修正建議
|
||||
|
||||
如果 UI 確實顯示 "Scanning",應統一為:
|
||||
- 顯示 "處理中 (Deep Scan)" 或
|
||||
- 顯示 "Processing"
|
||||
|
||||
## 版本歷史
|
||||
|
||||
| 版本 | 日期 | 變更 |
|
||||
|------|------|------|
|
||||
| 1.0 | 2026-07-23 | 初始版本 |
|
||||
Reference in New Issue
Block a user