Skip to content

Commit

Permalink
Merge pull request #26 from unckan/23-anuncios-extension
Browse files Browse the repository at this point in the history
Agregando extension anuncios
  • Loading branch information
avdata99 authored Nov 26, 2024
2 parents 0a78e00 + 2268da1 commit f158b92
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-unckan-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install -e .
echo "Installing Announcements extension"
pip install -e git+https://github.com/okfn/[email protected]#egg=ckanext-announcements
pip install -r https://raw.githubusercontent.com/okfn/ckanext-announcements/refs/tags/0.1.3/requirements.txt
- name: Setup extension
shell: bash
Expand All @@ -80,6 +83,8 @@ jobs:
ckan -c test.ini db upgrade -p api_tracking
# echo "Applying migrations for superset"
# ckan -c test.ini db upgrade -p superset
echo "Applying migrations for announcements"
ckan -c test.ini db upgrade -p announcements
- 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 datapusher_plus api_tracking superset
ckan.plugins = unckan pdf_view datapusher_plus api_tracking superset announcements

# 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 api_tracking superset
ckan.plugins = unckan image_view pdf_view datastore datatables_view datapusher_plus api_tracking superset announcements
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 @@ -33,6 +33,8 @@ echo "Applying migrations for tracking"
ckan db upgrade -p api_tracking
# echo "Applying migrations for superset"
# ckan db upgrade -p superset
echo "Applying migrations for announcements"
ckan db upgrade -p announcements

# Rebuild search index
ckan search-index rebuild
Expand Down
4 changes: 4 additions & 0 deletions docker/ckan/files/scripts/install-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ echo "Installing Apache Superset extension"
pip install -e git+https://github.com/unckan/[email protected]#egg=ckanext-superset
pip install -r https://raw.githubusercontent.com/unckan/ckanext-superset/refs/tags/0.1.4/requirements.txt

echo "Installing Announcements extension"
pip install -e git+https://github.com/okfn/[email protected]#egg=ckanext-announcements
pip install -r https://raw.githubusercontent.com/okfn/ckanext-announcements/refs/tags/0.1.3/requirements.txt

echo "CKAN extensions installed"

0 comments on commit f158b92

Please sign in to comment.