refactor: rename soft-delete marker from .deleted to .closed

Internal rename: DELETE_MARKER -> CLOSE_MARKER, DeleteMarker ->
CloseMarker, is_deleted -> is_closed. The batch UUID is dropped;
undo now groups cases by their exact closed_at timestamp, which
bulk-close writes identically across its selection while per-case
close writes a unique stamp.

Behavior unchanged. No migration (project is pre-production);
legacy .deleted files in tmpdata were removed manually.
This commit is contained in:
2026-04-21 10:36:55 +02:00
parent a8389a89db
commit 9410d6daaa
13 changed files with 131 additions and 145 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ pub async fn try_enqueue_all_for_user(
if !case_path.is_dir() {
continue;
}
if crate::paths::is_deleted(&case_path).await {
if crate::paths::is_closed(&case_path).await {
continue;
}
try_enqueue(&case_path, tx, config, events_tx).await;
+1 -1
View File
@@ -27,7 +27,7 @@ pub async fn enqueue_pending_for_user(user_root: &Path, tx: &AnalyzeSender) -> u
let mut sent = 0;
while let Ok(Some(case_entry)) = cases.next_entry().await {
let case_dir = case_entry.path();
if !case_dir.is_dir() || crate::paths::is_deleted(&case_dir).await {
if !case_dir.is_dir() || crate::paths::is_closed(&case_dir).await {
continue;
}
if !case_dir.join(ANALYSIS_INPUT_FILE).exists() {