Skip to content

Commit

Permalink
Add the api_tracking extension
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Nov 11, 2024
1 parent 7786400 commit 7d060c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-unckan-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
ckan -c test.ini db init
# ckan -c test.ini db upgrade -p unckan
ckan -c test.ini db upgrade -p datapusher_plus
echo "Applying migrations for tracking"
ckan db upgrade -p api_tracking
- name: Run tests
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion ckanext-unckan/test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use = config:../../ckan/test-core.ini

# Insert any custom config settings to be used when running your extension's
# tests here. These will override the one defined in CKAN core's test-core.ini
ckan.plugins = unckan pdf_view
ckan.plugins = unckan pdf_view api_tracking

# Logging configuration
[loggers]
Expand Down
2 changes: 1 addition & 1 deletion docker/ckan/files/ckan.ini
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ckan.cors.origin_allow_all = false
ckan.cors.origin_whitelist =

## Plugins Settings ############################################################
ckan.plugins = unckan image_view pdf_view datastore datatables_view datapusher_plus
ckan.plugins = unckan image_view pdf_view datastore datatables_view datapusher_plus api_tracking
ckan.resource_proxy.timeout = 5

## Front-End Settings ##########################################################
Expand Down
2 changes: 2 additions & 0 deletions docker/ckan/files/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ckan db init

echo "Datapusher+ DB upgrade"
ckan db upgrade -p datapusher_plus
echo "Applying migrations for tracking"
ckan db upgrade -p api_tracking

# Datapusher+ requires a valid API token to operate
echo "Creating a valid API token for Datapusher+"
Expand Down
6 changes: 5 additions & 1 deletion docker/ckan/files/scripts/install-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ fi
pip install git+https://github.com/ckan/ckanext-pdfview.git#egg=ckanext-pdfview

echo "Installing Datapusher+extension"
pip install -e git+https://github.com/okfn/datapusher-plus.git@okfn_tmp#egg=datapusher_plus && \
pip install -e git+https://github.com/okfn/datapusher-plus.git@okfn_tmp#egg=datapusher_plus
pip install -r https://raw.githubusercontent.com/okfn/datapusher-plus/okfn_tmp/requirements.txt

echo "Installing API-tracking extension"
pip install -e git+https://github.com/NorwegianRefugeeCouncil/[email protected]#egg=ckanext-api-tracking
pip install -r https://raw.githubusercontent.com/NorwegianRefugeeCouncil/ckanext-api-tracking/refs/tags/0.4.1/requirements.txt

echo "CKAN extensions installed"

0 comments on commit 7d060c9

Please sign in to comment.