remove: Portal project (Core Team 不再維護前端)
- 移除 portal/ 目錄 (Vue 3 + Tauri 前端) - 更新 AGENTS.md 移除 Portal 相關說明 - 更新代碼註釋移除 Portal 引用 - 前端開發統一由 Studio Team 負責 參考: docs_v1.0/OPERATIONS/GUI_ARCHITECTURE_REVIEW.md
This commit is contained in:
@@ -355,10 +355,10 @@ async fn list_face_candidates(
|
||||
let offset = (page - 1) * page_size;
|
||||
let min_confidence = query.min_confidence.unwrap_or(0.5);
|
||||
|
||||
// Query Qdrant _faces for unbound faces (identity_id IS NULL)
|
||||
// Query Qdrant _faces for unbound faces (identity_id = 0 means unbound)
|
||||
let qdrant = crate::core::db::qdrant_db::QdrantDb::new();
|
||||
let mut filter_must = vec![
|
||||
serde_json::json!({"is_null": {"key": "identity_id"}}),
|
||||
serde_json::json!({"key": "identity_id", "match": {"value": 0}}),
|
||||
serde_json::json!({"key": "confidence", "range": {"gte": min_confidence}}),
|
||||
];
|
||||
if let Some(ref file_uuid) = query.file_uuid {
|
||||
@@ -469,10 +469,10 @@ async fn list_unassigned_traces(
|
||||
None
|
||||
};
|
||||
|
||||
// Query Qdrant _faces for unbound traces (identity_id IS NULL, trace_id >= 0)
|
||||
// Query Qdrant _faces for unbound traces (identity_id = 0 means unbound, trace_id >= 0)
|
||||
let qdrant = crate::core::db::qdrant_db::QdrantDb::new();
|
||||
let mut filter_must: Vec<serde_json::Value> = vec![
|
||||
serde_json::json!({"is_null": {"key": "identity_id"}}),
|
||||
serde_json::json!({"key": "identity_id", "match": {"value": 0}}),
|
||||
serde_json::json!({"key": "trace_id", "range": {"gte": 0}}),
|
||||
];
|
||||
if let Some(ref file_uuid) = query.file_uuid {
|
||||
|
||||
@@ -122,7 +122,7 @@ pub async fn unified_auth(
|
||||
let headers = request.headers();
|
||||
let uri = request.uri().clone();
|
||||
|
||||
// Priority 1: Cookie session (Portal)
|
||||
// Priority 1: Cookie session
|
||||
let cookies = extract_cookies(headers);
|
||||
if let Some(sid) = cookies
|
||||
.iter()
|
||||
|
||||
@@ -881,6 +881,22 @@ async fn get_processor_counts(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Special handling for face_cluster: query trace_profiles if frame_count is None
|
||||
if proc_name == "face_cluster" && frame_count.is_none() {
|
||||
let tp_table = crate::core::db::schema::table_name("trace_profiles");
|
||||
let trace_count: i64 = sqlx::query_scalar(&format!(
|
||||
"SELECT COUNT(DISTINCT trace_id) FROM {} WHERE file_uuid = $1 AND frame_count > 0",
|
||||
tp_table
|
||||
))
|
||||
.bind(&file_uuid)
|
||||
.fetch_one(state.db.pool())
|
||||
.await
|
||||
.unwrap_or(0);
|
||||
if trace_count > 0 {
|
||||
frame_count = Some(trace_count as u32);
|
||||
}
|
||||
}
|
||||
|
||||
results.push(ProcessorCountInfo {
|
||||
processor: proc_name.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user