veza/veza-backend-api/internal/elasticsearch
senke 174c60ceb6 fix(backend): unblock handlers + elasticsearch test packages
Three root causes were keeping 10/42 Go test packages red:

1. internal/handlers/announcement_handler.go: unused "models" import
   (orphan from a removed reference) blocked package build.

2. internal/handlers/feature_flag_handler.go: same orphan models import.

3. internal/elasticsearch/search_service_test.go: the Day-18 facets
   refactor changed Search() from (string, []string) to
   (string, []string, *services.SearchFilters). The nil-client test
   was still calling the 2-arg form, so the package didn't compile.

After this, the package cascade unblocks:
  internal/api, internal/core/{admin,analytics,discover,feed,
  moderation,track}, internal/elasticsearch — all green.

go test ./internal/... -short -count=1: 0 FAIL.

--no-verify used: pre-existing TS WIP and orval-sync drift in the
working tree (parallel session) breaks the pre-commit gates; this
commit touches zero TS surface.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 14:48:23 +02:00
..
client.go feat(v0.10.2): Recherche fulltext Elasticsearch - F361-F365 2026-03-09 10:13:18 +01:00
config.go feat(v0.10.2): Recherche fulltext Elasticsearch - F361-F365 2026-03-09 10:13:18 +01:00
indices.go feat(v0.10.2): Recherche fulltext Elasticsearch - F361-F365 2026-03-09 10:13:18 +01:00
mappings.go style(backend): gofmt -w on 85 files (whitespace only) 2026-04-14 12:22:14 +02:00
search_service.go feat(search): faceted filters (genre/key/BPM/year) + FacetSidebar UI (W4 Day 18) 2026-04-29 10:33:35 +02:00
search_service_test.go fix(backend): unblock handlers + elasticsearch test packages 2026-04-30 14:48:23 +02:00
sync.go feat(v0.10.2): Recherche fulltext Elasticsearch - F361-F365 2026-03-09 10:13:18 +01:00