refactor: simplify status to scanning and completed only

變更:
- ✅ 移除 Processing 狀態
- ✅ 移除 Waiting 狀態
- ✅ 移除 Indexed 狀態
- ✅ 移除其他中間狀態
- ✅ 只保留 Scanning 和 Completed

VideoStatus 枚舉:
- Unregistered
- Registered
- Pending
- Queued
- Scanning (處理中)
- Completed (完成)
- Failed (失敗)

狀態流程:
Scanning → Completed

簡化原因:
- 中間狀態太多導致用戶困惑
- Scanning 和 Completed 足夠表示處理狀態
- 其他狀態(Pending, Queued, Failed)仍保留

狀態: ✅ 已實施
This commit is contained in:
Accusys
2026-09-29 02:11:30 +08:00
parent 7963cd0223
commit 8eca08c7c9
2 changed files with 0 additions and 51 deletions
-30
View File
@@ -232,16 +232,6 @@ pub enum VideoStatus {
Pending,
Queued,
Scanning,
Processing,
Waiting,
Processed,
Indexed,
CheckedOut,
KeywordReady,
SemanticReady,
PeopleReady,
FaceMgmtReady,
AgentReady,
Completed,
Failed,
}
@@ -254,16 +244,6 @@ impl VideoStatus {
VideoStatus::Pending => "pending",
VideoStatus::Queued => "queued",
VideoStatus::Scanning => "scanning",
VideoStatus::Processing => "processing",
VideoStatus::Waiting => "waiting",
VideoStatus::Processed => "processed",
VideoStatus::Indexed => "indexed",
VideoStatus::CheckedOut => "checked_out",
VideoStatus::KeywordReady => "keyword_ready",
VideoStatus::SemanticReady => "semantic_ready",
VideoStatus::PeopleReady => "people_ready",
VideoStatus::FaceMgmtReady => "face_mgmt_ready",
VideoStatus::AgentReady => "agent_ready",
VideoStatus::Completed => "completed",
VideoStatus::Failed => "failed",
}
@@ -276,16 +256,6 @@ impl VideoStatus {
"pending" => Some(VideoStatus::Pending),
"queued" => Some(VideoStatus::Queued),
"scanning" => Some(VideoStatus::Scanning),
"processing" => Some(VideoStatus::Processing),
"waiting" => Some(VideoStatus::Waiting),
"processed" => Some(VideoStatus::Processed),
"indexed" => Some(VideoStatus::Indexed),
"checked_out" => Some(VideoStatus::CheckedOut),
"keyword_ready" => Some(VideoStatus::KeywordReady),
"semantic_ready" => Some(VideoStatus::SemanticReady),
"people_ready" => Some(VideoStatus::FaceMgmtReady),
"face_mgmt_ready" => Some(VideoStatus::FaceMgmtReady),
"agent_ready" => Some(VideoStatus::AgentReady),
"completed" => Some(VideoStatus::Completed),
"failed" => Some(VideoStatus::Failed),
_ => None,