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

Merge dockerizing into main branch #102

Merged
merged 124 commits into from
Feb 8, 2024
Merged

Merge dockerizing into main branch #102

merged 124 commits into from
Feb 8, 2024

Conversation

bellisk
Copy link
Contributor

@bellisk bellisk commented Feb 6, 2024

No description provided.

bellisk and others added 30 commits November 16, 2022 16:20
We are using ckanext-envvars for config now, and env var names cannot contain hyphens.
Previously, when creating a resource with url_type 'upload', we added the filename of the resource file as the resource url.
This was presumably so that when the file was uploaded by ckan/ckan/lib/uploader.py:ResourceUpload, the uploader could use the file extension to guess the mimetype of the file.
We used a custom validator in ckanext-stadtzh-theme that would not validate resource urls if resource url_type was 'upload'.
However, the ResourceUpload class has now been changed to validate the url before using it to guess the mimetype, so this no longer works.
If we don't enter a url here, the uploader will instead use the file extension of the uploaded file to guess the mimetype.
It also overwrites the resource url with the url of the uploaded file, so there is really no reason to keep setting the url here.
This will be overwritten if there is a description in the metadata for this resource.
This test not only fails with the error, 'Validator validate_url not found' but causes all tests run after it to fail in the same way. Figure this out in the future.
Necessary for ckan 2.9 compatibility.
Also, re-enable test that was failing because the theme plugin was not enabled.
This is so it can be used by ckanext-stadtzh_losdharvest as well.
The solr/ directory is copied from our base repository. It will have to be updated when we make updates there - we should change this to have less duplication.
Because otherwise docker complains.
bellisk and others added 27 commits August 31, 2023 14:26
We need to use the ckan-2.10-python-3 branch so that CKAN 2.10 tests will pass for this repo.
This is important so that we don't create all our custom tags (in the 'with_plugins' fixture) and then delete them again (in 'clean_db').
If we get an alembic error, we are using a version of ckanext-harvest before they switched to alembic migrations.
We need the harvest plugin loaded first so that we can run any necessary db migrations for it after the db is cleaned.

We need the stadtzhtheme plugin loaded afterwards, so that we can create all our tag vocabularies (which would be removed on cleaning the db).
@bellisk bellisk merged commit f3860f8 into main Feb 8, 2024
4 checks passed
@bellisk bellisk deleted the dockerizing branch February 8, 2024 10:32
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.

None yet

3 participants