project-nomad/admin/app/services
Chris Sherwood 20d747b3fb
fix(ZIM): preserve co-existing Wikipedia corpora on cleanup (#884)
onWikipediaDownloadComplete was deleting every file whose name starts
with `wikipedia_en_`, treating distinct corpora (simple, medicine,
wikivoyage, climate_change, etc.) as competing versions of the same
selection slot. Whichever wiki finished second silently wiped the
other from disk.

Match by filename stem instead — strip the trailing `_YYYY-MM(-DD).zim`
date suffix and only delete files with the same stem as the new
download. Different release dates of the same variant still get cleaned
up; distinct variants are preserved.

Extracted the predicate to `app/utils/zim_filename.ts` so the boundary
is covered by unit tests (8 cases incl. the #884 repro scenario).
2026-05-20 17:14:38 +00:00
..
benchmark_service.ts fix(AI): vendor-aware AMD HSA override + benchmark discrete-GPU detection 2026-05-20 17:13:19 +00:00
chat_service.ts fix(AI): qwen2.5 loading on every chat message (#649) 2026-04-21 14:26:28 -07:00
collection_manifest_service.ts fix: update default branch name 2026-03-01 16:08:46 -08:00
collection_update_service.ts feat(content-updates): show size, surface downloads in Active Downloads 2026-05-20 17:12:42 +00:00
container_registry_service.ts feat: support for updating services 2026-03-11 14:08:09 -07:00
countries_service.ts feat(Maps): regional map downloads via go-pmtiles extract (#780) 2026-05-20 17:12:43 +00:00
docker_service.ts fix(DockerService): improve volume logic and documentation in forceReinstall 2026-05-20 17:14:36 +00:00
docs_service.ts docs: add Community Add-Ons page with field manuals + W3Schools packs (#753) 2026-04-21 14:26:28 -07:00
download_service.ts feat(Maps): regional map downloads via go-pmtiles extract (#780) 2026-05-20 17:12:43 +00:00
kiwix_library_service.ts fix: prevent ZIM corrupt file crash and deduplicate Ollama download logs (#741) 2026-04-21 14:26:28 -07:00
map_service.ts feat(Maps): regional map downloads via go-pmtiles extract (#780) 2026-05-20 17:12:43 +00:00
ollama_service.ts fix(RAG): pace continuation batches when embedding is CPU-only 2026-05-20 17:14:35 +00:00
queue_service.ts fix(queue): singleton QueueService to stop ioredis connection leak 2026-05-20 17:14:34 +00:00
rag_service.ts fix(KB): add re-embed and reset & rebuild opts to fix broken embeddings (#886) 2026-05-20 17:14:37 +00:00
system_service.ts fix(System): validate StartedAt with fallback to tail:500 (PR review) 2026-05-20 17:14:37 +00:00
system_update_service.ts fix(security): SSRF validation for map downloads and error sanitization (CWE-918, CWE-209) (#552) 2026-04-21 14:26:28 -07:00
zim_extraction_service.ts fix(RAG): report ZIM ingestion progress in overall-file frame 2026-05-20 17:14:37 +00:00
zim_service.ts fix(ZIM): preserve co-existing Wikipedia corpora on cleanup (#884) 2026-05-20 17:14:38 +00:00