From a773a1c865b074660396ae7983eac39132643bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Tue, 3 Nov 2026 22:12:20 +0100 Subject: [PATCH] update compatible versions list for CKAN 2.11.7 Add the releases made for CKAN 2.11.7 (setuptools>=82 compatibility, dcor_theme rgb colors). They also work with CKAN 2.11.5 and 2.11.6, so these versions are listed as well. Otherwise, `get_max_compatible_version` would raise an IndexError on servers still running CKAN 2.11.5/2.11.6, because it matches older CKAN versions exactly. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG | 3 +++ dcor_control/resources/compatible_versions.txt | 3 +++ tests/test_update.py | 9 +++++++++ 3 files changed, 15 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 4edbf7f..f9dc55d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +1.17.4 + - update compatible versions list for CKAN 2.11.7 (also listing + CKAN 2.11.5 and 2.11.6, which are compatible with the same releases) 1.17.3 - update compatible versions list - tests: own the docker image diff --git a/dcor_control/resources/compatible_versions.txt b/dcor_control/resources/compatible_versions.txt index 722fdcf..498f02c 100644 --- a/dcor_control/resources/compatible_versions.txt +++ b/dcor_control/resources/compatible_versions.txt @@ -1,4 +1,7 @@ ckan ckanext-dc_log_view ckanext-dc_serve ckanext-dc_view ckanext-dcor_depot ckanext-dcor_schemas ckanext-dcor_theme dcor_control dcor_shared +2.11.7 1.0.1 1.0.10 1.0.3 1.0.6 1.2.0 1.1.5 1.17.4 1.0.4 +2.11.6 1.0.1 1.0.10 1.0.3 1.0.6 1.2.0 1.1.5 1.17.4 1.0.4 +2.11.5 1.0.1 1.0.10 1.0.3 1.0.6 1.2.0 1.1.5 1.17.4 1.0.4 2.11.3 1.0.0 1.0.7 1.0.2 1.0.3 1.1.0 1.1.4 1.17.3 1.0.4 2.11.3 1.0.0 1.0.7 1.0.1 1.0.3 1.0.2 1.1.3 1.17.2 1.0.4 2.11.3 1.0.0 1.0.7 1.0.1 1.0.3 1.0.0 1.1.2 1.17.1 1.0.4 diff --git a/tests/test_update.py b/tests/test_update.py index 4824209..731281c 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -10,6 +10,15 @@ # latest version always returns None ("ckanext-dc_log_view", None, None), ("ckanext-dc_log_view", "2.9.0", "0.2.2"), + # CKAN 2.11.7 is the latest version listed + ("ckanext-dcor_theme", "2.11.7", None), + # releases for CKAN 2.11.7 also work with + # CKAN 2.11.5 and 2.11.6 + ("ckanext-dcor_theme", "2.11.6", "1.1.5"), + ("ckanext-dcor_schemas", "2.11.5", "1.2.0"), + ("ckanext-dc_serve", "2.11.5", "1.0.10"), + # CKAN 2.11.3 keeps the previous releases + ("ckanext-dcor_theme", "2.11.3", "1.1.4"), ]) def test_get_max_compatible_version(name, ckan_version, version): assert update.get_max_compatible_version(