Merge pull request 'Clear wrong face names without re-scoring every game' (#98) from task/faces-roster into main
ci / rust (push) Successful in 12m14s
ci / typescript (push) Failing after 15m56s

This commit was merged in pull request #98.
This commit is contained in:
spark committed 2026-10-21 20:19:00 +01:00
commit 81faa115ec
1 file changed
+3 -2
+3 -2
View File
@@ -125,7 +125,8 @@ export class FaceService {
(err) => this.deps.log.warn({ err }, "faces: cross-sport suggestions not checked"),
);
// A name from outside a known game (made when a weak face was compared with the whole organization).
void dropOffRosterSuggestions(this.deps.db, (eventId) => this.refreshSuggestions(eventId)).then(
// Cleared only. Naming the game again here walks every person of every event and stalls photo analysis.
void dropOffRosterSuggestions(this.deps.db).then(
(n) => void (n && this.deps.log.warn({ groups: n }, "faces: suggestions from outside the game taken away")),
(err) => this.deps.log.warn({ err }, "faces: roster suggestions not checked"),
);
@@ -1121,7 +1122,7 @@ export async function dropCrossSportSuggestions(db: Db): Promise<number> {
/**
* Suggestions of someone who is not on the game's roster (a weak face compared with the whole organization)
* taken away; names confirmed by a person stay. Each such game is named again from its roster only.
* taken away; names confirmed by a person stay. The game is named again the next time its photos are read.
* Returns how many suggestions were cleared.
*/
export async function dropOffRosterSuggestions(db: Db, refresh?: (eventId: string) => Promise<void>): Promise<number> {