docs(audit): log 2026-04-20 findings
This commit is contained in:
parent
f42697f4ed
commit
890f0c2126
9
Audit.md
9
Audit.md
|
|
@ -1,5 +1,14 @@
|
||||||
# Audit Log
|
# Audit Log
|
||||||
|
|
||||||
|
## 2026-04-20
|
||||||
|
|
||||||
|
Found and fixed 4 issues:
|
||||||
|
|
||||||
|
1. **Dead code in conflict recovery** (sync.rs:756) — `parts[1] != ".listdata.json"` was unreachable because the branch is already gated on `parts[1].ends_with(".md")`, which `.listdata.json` cannot satisfy. Removed the redundant check.
|
||||||
|
2. **O(n²) cascade delete** (tauri/lib.rs) — descendant traversal in `delete_task` used `Vec::contains` inside the inner loop, making it quadratic in the number of tasks per list. Swapped the visited set to `HashSet`; `HashSet::insert` folds the contains+push into one call.
|
||||||
|
3. **Silent cascade failure in toggle_task** (tauri/lib.rs) — subtask `update_task` errors were discarded with `let _ = ...`, leaving subtasks stuck at the old status with no UI feedback. Propagate the error so the frontend can surface it.
|
||||||
|
4. **Duplicated UUID-parse boilerplate** (tauri/lib.rs) — 17 commands repeated `Uuid::parse_str(&x).map_err(|e| e.to_string())?`. Extracted a `parse_uuid` helper so callers read as `let id = parse_uuid(&list_id)?;`.
|
||||||
|
|
||||||
## 2026-04-15
|
## 2026-04-15
|
||||||
|
|
||||||
Found and fixed 4 issues:
|
Found and fixed 4 issues:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue