1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-09 13:26:47 +01:00
immich/server/src/domain/person
Michael Manganiello 030cd8c4c4
chore(server): Prepare access interfaces for bulk permission checks (#5223)
* chore(server): Prepare access interfaces for bulk permission checks

This change adds the `AccessCore.getAllowedIds` method, to evaluate
permissions in bulk, along with some other `getAllowedIds*` private
methods.

The added methods still calculate permissions by id, and are not
optimized to reduce the amount of queries and execution time, which will
be implemented in separate pull requests.

Services that were evaluating permissions in a loop have been refactored
to make use of the bulk approach.

* chore(server): Apply review suggestions

* chore(server): Make multiple-permission check more readable
2023-11-22 23:04:52 -05:00
..
index.ts refactor: domain repositories (#4403) 2023-10-09 14:25:03 +00:00
person.dto.ts fix: suggest people (#4566) 2023-10-24 15:53:49 +00:00
person.service.spec.ts feat(server): don't re-run face recognition on assets without any faces (#4854) 2023-11-09 20:55:00 -05:00
person.service.ts chore(server): Prepare access interfaces for bulk permission checks (#5223) 2023-11-22 23:04:52 -05:00