feat(server): Avoid face match with people born after file creation #4743 (#16918)

* feat(server): Avoid face matching with people born after file creation date (#4743)

* lint

* add medium tests for facial recognition

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Abhinav Valecha 2025-04-02 21:07:26 +05:30 committed by GitHub
parent 4336afd6bf
commit b621281351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 422 additions and 5 deletions

View file

@ -136,6 +136,7 @@ with
"asset_faces"
inner join "assets" on "assets"."id" = "asset_faces"."assetId"
inner join "face_search" on "face_search"."faceId" = "asset_faces"."id"
left join "person" on "person"."id" = "asset_faces"."personId"
where
"assets"."ownerId" = any ($2::uuid[])
and "assets"."deletedAt" is null