From b26c3cbf941bc5f54e590baf22ec6587ff3fc16b Mon Sep 17 00:00:00 2001 From: german Date: Tue, 10 Dec 2024 16:01:55 -0300 Subject: [PATCH 1/2] Update tracking --- docker/ckan/files/scripts/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/ckan/files/scripts/entrypoint.sh b/docker/ckan/files/scripts/entrypoint.sh index 61b6b74..b483689 100755 --- a/docker/ckan/files/scripts/entrypoint.sh +++ b/docker/ckan/files/scripts/entrypoint.sh @@ -39,6 +39,10 @@ ckan db upgrade -p announcements # Rebuild search index ckan search-index rebuild +# Update tracking +LAST_MONTH=$(date -d '60 days ago' +'%Y-%m-%d') +ckan tracking update $LAST_MONTH + # Datapusher+ requires a valid API token to operate echo "Creating a valid API token for Datapusher+" DATAPUSHER_TOKEN=$(ckan user token add default datapusher_multi expires_in=365 unit=86400 | tail -n 1 | tr -d '\t') From 83c2bb2e19ff4b49c5971302f7542d2d49cccefd Mon Sep 17 00:00:00 2001 From: avdata99 Date: Wed, 11 Dec 2024 18:52:53 -0300 Subject: [PATCH 2/2] Actualizar api-tracking --- docker/ckan/files/scripts/install-extensions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/ckan/files/scripts/install-extensions.sh b/docker/ckan/files/scripts/install-extensions.sh index 5dc4340..f13452b 100755 --- a/docker/ckan/files/scripts/install-extensions.sh +++ b/docker/ckan/files/scripts/install-extensions.sh @@ -34,8 +34,8 @@ pip install -e git+https://github.com/okfn/datapusher-plus.git@okfn_tmp#egg=data pip install -r https://raw.githubusercontent.com/okfn/datapusher-plus/okfn_tmp/requirements.txt echo "Installing API-tracking extension" -pip install git+https://github.com/NorwegianRefugeeCouncil/ckanext-api-tracking.git@0.4.3#egg=ckanext-api-tracking -pip install -r https://raw.githubusercontent.com/NorwegianRefugeeCouncil/ckanext-api-tracking/refs/tags/0.4.3/requirements.txt +pip install git+https://github.com/NorwegianRefugeeCouncil/ckanext-api-tracking.git@0.4.4#egg=ckanext-api-tracking +pip install -r https://raw.githubusercontent.com/NorwegianRefugeeCouncil/ckanext-api-tracking/refs/tags/0.4.4/requirements.txt echo "Installing Apache Superset extension" pip install git+https://github.com/unckan/ckanext-superset.git@0.1.9#egg=ckanext-superset