1 Changelog V1.21.5
Forgejo Actions edited this page 2026-09-25 16:38:07 +00:00

v1.21.5

Date: 2026-07-18 PR: #640

Bug Fixes

  • People with assigned faces missing from /discovery/domains/people — ClassInstanceService.upsertGenericPeopleOccurrence() did not publish OccurrenceCreatedEvent, so PendingEmbeddingFlushListener never fired. Embeddings stuck in pending_face_embeddings; source faces had no embeddings for similarity matching; representative_occurrence_id was never auto-set. Fixed: ClassInstanceService now injects ApplicationEventPublisher; event published on successful INSERT; representative_occurrence_id auto-set on first occurrence if null.
  • "0 occurrences" in suggestions — name-based fallback in suggestSimilarInstances() hard-coded occurrenceCount=0 + thumbnailUrl=null. Fixed: fallback SQL now queries real occurrence_count via correlated subquery and thumbnail_url via face crop URL.
  • No thumbnail in suggestions / people page — representative_occurrence_id not auto-set on class_instances during face assignment. Fixed: auto-set when first occurrence created and no representative exists.

Migrations

  • V118 backfill_occurrence_embeddings.sql: idempotent UNIQUE (occurrence_id, model_name, model_version) constraint added; moves existing pending_face_embeddings to class_occurrence_embeddings for accepted face occurrences; cleans up flushed pending rows. Run once at deploy.