AOSSIE-Org / AOSSIE-Org/PictoPy

BUG: face data persists after source folder is removed

Open
#569 3 comments 0 reactions 1 assignee Claimed by @DecodeX15 View on GitHub
backend bug
Dominant language
Python
Stars
283
Forks
679
Avg merge
7d 2h
Merged PRs (30d)
3

Description

There is an issue where face data remains in the system even after the folder containing the source photos has been deleted. This creates "orphaned" face entries that are not linked to any existing file, causing data inconsistency.

Current Behavior:

A user adds a folder of photos.
The model processes the photos and correctly tracks the faces within them.
The user then removes the source folder.
The face data from the deleted photos remains in the database/system, but it is no longer associated with a valid photo, appearing as an entry with "zero faces" or invalid links.

Expected Behavior:

When a folder is deleted, all face data associated with the photos in that folder should also be deleted from the system.
The face tracking data should always be synchronized with the existing photo library, ensuring that every tracked face corresponds to a photo that is currently in a folder.

see the video

https://github.com/user-attachments/assets/d3bbc532-0477-4315-9d34-6068ccc088d1

### Record

- [x] I agree to follow this project's Code of Conduct

### Checklist before Submitting

- [ ] Have you updated docs for it?
- [ ] Have you added unit tests?
- [ ] Have you made sure unit tests pass?
- [x] Have you made sure code formatting is correct?
- [ ] Do Your changes passes all tests?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.