AOSSIE-Org / AOSSIE-Org/PictoPy

Add soft-delete (trash/recycle bin) instead of permanent image deletion

未關閉
#1,474 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
284
分支
680
平均合併
7 天 5 小時
30 天內合併 PR
4

描述

**Problem**
Currently deleting an image (single or bulk) removes it — and its DB rows/embeddings — permanently with no way to recover. A single misclick in bulk-select mode can wipe irreplaceable photos with zero undo path.

**Proposed solution**
- Add a `deleted_at` (nullable) column to the images table instead of hard-deleting the row on first delete
- "Trash" view in the UI showing soft-deleted images, with Restore / Delete Forever actions
- Auto-purge (hard delete) items from trash after N days (configurable), which is where the existing orphaned-rows cleanup from #1405 would actually run
- Embeddings/semantic_labels stay untouched until final purge, so restore is cheap

**Why this matters**
Photo apps (Google Photos, Apple Photos) all have this as a baseline safety feature. PictoPy currently has none, which is risky for a local-first tool where there's no cloud backup.

Happy to pick this up — I've worked on the DB layer before (album/faces unit tests, PR #1342) and can pair the schema change with test coverage.

貢獻指南

開啟貢獻指南

研究方向

Start with the DB layer and the existing album/faces unit tests referenced in the issue, then trace the single- and bulk-delete flows and the image UI. Define the schema, trash, restore, permanent deletion, and configurable purge behavior before implementation. Done means deleted images can be restored, final deletion removes associated data, and the flows have test coverage.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
database, desktop
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
活躍
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。