1 Changelog V1.21.76
Forgejo Actions edited this page 2026-10-11 11:50:38 +00:00

v1.21.76

Date: 2026-10-11

Features

  • Search filter for face-assignment approval status: approval:tentative / approval:approved query token (aliases pending / accepted are accepted and normalized) plus an approval URL param and a "Face approval" dropdown in the search filter menu. Tentative matches media with at least one open tentative face assignment (class_instance_occurrences.state = 'tentative', domain people/person, occurrence_type face_annotation); approved matches media with at least one accepted (state = 'accepted') assignment, regardless of other pending ones. Malformed values stay literal free text like other tokens; duplicate approval: tokens are rejected (400) like year: / favorite:. The token wins over the URL param (query string is the source of truth). The SQL restriction uses the same owner-scoped class_instance_occurrences → discovery_results join as the person: filter and applies to all search legs including filter-only browsing.

Notes

  • Backend: SearchFilters.java (new Approval enum, tryParseApproval/parseApproval, 8-arg parse overload), SearchQueryParser.java (KIND_APPROVAL, ParsedQuery.approval()), SearchService.java (mergeFilters + filterRestriction predicate), SearchController.java (approval param), SearchResponse.java (docs). Tests: SearchQueryParserTest (+7), SearchServiceTest (+3, incl. tentativeFace fixture helper; V141 state tentative on occurrences, owner_recognized on the face row).
  • Frontend: queryTokens.ts (approval key + alias validation + normalizer), timeline.ts (SearchMediaFilters.approval), FilterSortMenu.svelte (opt-in approval select; other surfaces unchanged), search/+page.svelte (dropdown, chip "Approval: Tentative|Approved", badge count). Tests: queryTokens.spec.ts (new), searchMediaFilters.spec.ts (new), tests/search-filters.spec.ts (+2 e2e).
  • Version bump 1.21.75 → 1.21.76 (PR branch, gradle.properties).