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

Fix/fix adding dataset to groups #134

Open
wants to merge 4 commits into
base: migration
Choose a base branch
from

Conversation

bellisk
Copy link
Contributor

@bellisk bellisk commented Nov 13, 2024

No description provided.

@bellisk bellisk changed the base branch from main to migration November 13, 2024 14:28
This helper converts a value into a form that can be used as a sort key - for example, it converts a group's display_name so that a list of groups can be sorted by display_name. Our group titles are multilingual, so we need to localise the value before this can be done.
@bellisk bellisk force-pushed the fix/fix-adding-dataset-to-groups branch from 9a256ca to 266caa2 Compare November 13, 2024 14:31
When we try to get toolkit.request.environ while rebuilding the search index, we get a RuntimeError, 'Working outside of request context,' so we need to catch that here as well as the TypeError.
@bellisk bellisk force-pushed the fix/fix-adding-dataset-to-groups branch from f887786 to 32dfb80 Compare November 14, 2024 12:51
@@ -61,7 +61,7 @@ jobs:
- name: Create ckan container
run: |
/usr/bin/docker create --name test_ckan --network ${{ job.container.network }} --network-alias ckan \
--env-file ${{ github.workspace }}/github-workflow.env \
--env-file ${{ github.workspace }}/github-workflow.env --user root \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed so that tests run on the new, root-user-minimised CKAN docker container.

@bellisk bellisk force-pushed the fix/fix-adding-dataset-to-groups branch from bd66b01 to 0011d07 Compare November 14, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant