Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agregando extension anuncios #26

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Comment on lines +65 to +67
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hay que hacer otro PR para quitar esto si despues de mezclar esto se compila y publica bien todo en dockerhub


- 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.3/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"
Loading