mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-10-17 05:14:19 +02:00
On 1.34.0 every FDA ingest finished with its labels loaded but lost the
installed_resources 'dataset' row, because resource_type was still
enum('zim','map'). The enum migration in #1243 fixes new writes but can't recreate
the lost row. Re-selecting the tier doesn't fix it either, because ZimService
skips a dataset that already has rows. So Medicine never resolved its
Standard tier.
- Add DrugInstallRowProvider. On each boot it backfills the row when an
ingest has finished (rows present, export date set, no download
marker, no drug job running) and no row exists.
- Put the decision in decideDrugRowReconcile() so it has unit tests.
- Add DrugReferenceService.recordInstalledRow() as the one writer used
by the ingest job, the provider, and ZimService.
- ZimService now writes the row when a Medicine tier re-select finds a
finished ingest with no row.
Manual ingests and reset-and-reingest runs, which dispatch without
resourceMeta, also get the row on the next boot.
|
||
|---|---|---|
| .. | ||
| app_auto_update_job.ts | ||
| auto_update_job.ts | ||
| check_service_updates_job.ts | ||
| check_update_job.ts | ||
| content_auto_update_job.ts | ||
| download_drug_data_job.ts | ||
| download_model_job.ts | ||
| embed_file_job.ts | ||
| ingest_drug_data_job.ts | ||
| run_benchmark_job.ts | ||
| run_download_job.ts | ||
| run_extract_pmtiles_job.ts | ||