From aac0b1062bc5d585f05e4291056fe3f736a90ff3 Mon Sep 17 00:00:00 2001 From: sacchi_r Date: Fri, 9 Oct 2026 15:00:49 +0200 Subject: [PATCH] Update CLIC: missing-supplier export warnings and migration 0011 (#83) Update all four CLIC services (`clic-web`, `clic-package-exports`, `clic-brightway-json-exports`, and `clic-inventory-archive`) to the same verified `linux/amd64` image. This includes the BrightPath 1.0.0a6 fixes already proposed in this PR and allows exports with missing non-background suppliers to succeed with explicit warnings. ```text gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2 ``` ## Required database migration **This release requires `downloads.0011_packageexportjob_warnings`.** It adds a JSON `warnings` column to package export jobs; existing jobs receive an empty list. Inventories, user accounts and published dataset versions are not rewritten. The normal `clic-web` container startup runs `initialize_inventory_catalog`, which applies pending migrations before starting Gunicorn. All three CLIC workers already wait for the web service to be healthy. Pull and recreate all four services with the new image, allowing web initialization to complete before the updated workers start. If deploying with a custom startup path that bypasses the image entrypoint, apply the migration explicitly before starting the updated processes: ```sh docker compose run --rm --entrypoint python clic-web manage.py migrate --noinput ``` --------- Co-authored-by: romainsacchi Reviewed-on: https://gitea.psi.ch/linux/WebHosting_DMZ/pulls/83 Co-authored-by: sacchi_r --- docker-compose.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 62a7773..b392603 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -147,7 +147,7 @@ services: # Romain Sacchi # CLIC Django platform clic-web: - image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0} + image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2} container_name: clic-web restart: always env_file: @@ -192,7 +192,7 @@ services: - clic_backend clic-package-exports: - image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0} + image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2} container_name: clic-package-exports restart: always env_file: @@ -223,7 +223,7 @@ services: - clic_backend clic-brightway-json-exports: - image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0} + image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2} container_name: clic-brightway-json-exports restart: always env_file: @@ -261,7 +261,7 @@ services: - clic_backend clic-inventory-archive: - image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:3236f02@sha256:1f969e64c7e6925fa9051d337e5716498a5fe2b3f8c5fb1f9ff8cd883385cbf0} + image: ${CLIC_IMAGE:-gitea.psi.ch/images/clic:dab21a5-missing-foreground-2a1fe954da76@sha256:1e13386f3a435681be61900707f11f858faee22171e644912bba7b7df3a19fd2} container_name: clic-inventory-archive restart: always env_file: