projectHistoryLabels 保存使用者在歷史檢視中為版本加上的標籤,每個標籤一個文件。它歸 project-history 所有,並由其在 services/project-history/app/js/LabelsManager.js 中寫入;沒有 Mongoose schema。Web 只透過 project-history API 存取它。
欄位
寫入方
讀取方
索引
說明
- 插入標籤之前,project-history 會處理該專案排隊中的更新,並檢查 history-v1 中是否有該版本的 chunk,除非請求傳送了
validate_exists: false(LabelsManager.js:53-59、173-195;HttpController.js:1109-1115)。 - 刪除專案時,沒有程式碼會刪除其標籤:project-history
DELETE /project/:project_id只清除同步狀態和失敗記錄(HttpController.js:1363-1396),其他服務也不會碰這個集合。

