-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from qld-gov-au/develop
Develop to master
- Loading branch information
Showing
41 changed files
with
838 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,14 +95,22 @@ add_user_if_needed foodie "Foodie" foodie@localhost | |
add_user_if_needed group_admin "Group Admin" group_admin@localhost | ||
add_user_if_needed walker "Walker" walker@localhost | ||
|
||
# Create test dataset with our standard fields | ||
# Create private test dataset with our standard fields | ||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"name": "test-dataset", "owner_org": "'"${TEST_ORG_ID}"'", | ||
--data '{"name": "test-dataset", "owner_org": "'"${TEST_ORG_ID}"'", "private": true, | ||
"update_frequency": "monthly", "author_email": "admin@localhost", "version": "1.0", | ||
"license_id": "other-open", "data_driven_application": "NO", "security_classification": "PUBLIC", | ||
"notes": "test", "de_identified_data": "NO"}' \ | ||
${CKAN_ACTION_URL}/package_create | ||
|
||
# Create public test dataset with our standard fields | ||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"name": "public-test-dataset", "owner_org": "'"${TEST_ORG_ID}"'", | ||
"update_frequency": "monthly", "author_email": "[email protected]", "version": "1.0", | ||
"license_id": "other-open", "data_driven_application": "NO", "security_classification": "PUBLIC", | ||
"notes": "test", "de_identified_data": "NO"}' \ | ||
${CKAN_ACTION_URL}/package_create | ||
|
||
# Datasets need to be assigned to an organisation | ||
|
||
echo "Assigning test Datasets to Organisation..." | ||
|
@@ -208,6 +216,13 @@ curl -LsH "Authorization: ${API_KEY}" \ | |
--data "id=${DR_ORG_ID}&object=dr_member&object_type=user&capacity=member" \ | ||
${CKAN_ACTION_URL}/member_create | ||
|
||
echo "Creating test dataset for data request organisation:" | ||
|
||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"name": "data_request_dataset", "description": "Dataset for data requests", "owner_org": "'"${DR_ORG_ID}"'", | ||
"update_frequency": "near-realtime", "author_email": "dr_admin@localhost", "version": "1.0", "license_id": "cc-by-4", | ||
"data_driven_application": "NO", "security_classification": "PUBLIC", "notes": "test", "de_identified_data": "NO"}'\ | ||
${CKAN_ACTION_URL}/package_create | ||
|
||
echo "Creating test Data Request:" | ||
|
||
|
@@ -269,12 +284,29 @@ curl -LsH "Authorization: ${API_KEY}" \ | |
# END. | ||
# | ||
|
||
## | ||
# BEGIN: Add sysadmin config values. | ||
# This needs to be done before closing datarequests as they require the below config values | ||
# | ||
echo "Adding ckan.datarequests.closing_circumstances:" | ||
|
||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"ckan.comments.profanity_list": "", "ckan.datarequests.closing_circumstances": | ||
"Released as open data|nominate_dataset\r\nOpen dataset already exists|nominate_dataset\r\nPartially released|nominate_dataset\r\nTo be released as open data at a later date|nominate_approximate_date\r\nData openly available elsewhere\r\nNot suitable for release as open data\r\nRequested data not available/cannot be compiled\r\nRequestor initiated closure"}' \ | ||
${CKAN_ACTION_URL}/config_option_update | ||
|
||
echo "Creating config value for resource formats:" | ||
|
||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"ckanext.data_qld.resource_formats": "CSV\r\nHTML\r\nJSON\r\nRDF\r\nTXT\r\nXLS"}' \ | ||
${CKAN_ACTION_URL}/config_option_update | ||
|
||
echo "Creating config value for excluded display name words:" | ||
|
||
curl -LsH "Authorization: ${API_KEY}" \ | ||
--data '{"ckanext.data_qld.excluded_display_name_words": "gov"}' \ | ||
${CKAN_ACTION_URL}/config_option_update | ||
|
||
if [ "$VENV_DIR" != "" ]; then | ||
deactivate | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env sh | ||
## | ||
# Initialise CKAN instance. | ||
# Initialise CKAN data for testing. | ||
# | ||
set -e | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# ckanext-data-qld-harvester | ||
# ckanext-harvester-data-qld-geoscience | ||
|
||
A CKAN extension to implement custom harvesting requirements for Data.Qld. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,19 @@ python-magic==0.4.18 | |
messytables==0.15.2 | ||
progressbar==2.5 | ||
|
||
-e git+https://github.com/ckan/ckanext-dcat.git#egg=ckanext-dcat | ||
-e git+https://github.com/ckan/ckanext-dcat.git@v1.1.3#egg=ckanext-dcat | ||
-e git+https://github.com/ckan/[email protected]#egg=ckanext-harvest | ||
-e git+https://github.com/ckan/ckanext-scheming.git@release-1.2.0#egg=ckanext-scheming | ||
-e git+https://github.com/qld-gov-au/ckan-ex-qgov.git@4.0.2#egg=ckanext-qgov | ||
-e git+https://github.com/ckan/ckanext-scheming.git@release-2.1.0#egg=ckanext-scheming | ||
-e git+https://github.com/qld-gov-au/ckan-ex-qgov.git@5.0.2#egg=ckanext-qgov | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-archiver | ||
-e git+https://github.com/qld-gov-au/[email protected].3#egg=ckanext-csrf-filter | ||
-e git+https://github.com/qld-gov-au/ckanext-data-qld.git@6.0.5#egg=ckanext-data-qld | ||
-e git+https://github.com/qld-gov-au/[email protected].4#egg=ckanext-csrf-filter | ||
-e git+https://github.com/qld-gov-au/ckanext-data-qld.git@6.3.4#egg=ckanext-data-qld | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-datarequests | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-odi-certificates | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-qa | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-report | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-resource-type-validation | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-ssm-config | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-validation | ||
-e git+https://github.com/qld-gov-au/ckanext-xloader.git@0.9.0-qgov.1#egg=ckanext-xloader | ||
-e git+https://github.com/qld-gov-au/ckanext-xloader.git@0.10.0-qgov.1#egg=ckanext-xloader | ||
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-ytp-comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ckantoolkit>=0.0.4 | ||
pika>=1.1.0 | ||
pika>=1.1.0,<1.3.0 | ||
pyOpenSSL>=18.0.0 | ||
redis | ||
requests>=2.11.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
[extract_messages] | ||
keywords = translate isPlural | ||
add_comments = TRANSLATORS: | ||
output_file = ckanext/data-qld-harvester/i18n/ckanext-data-qld-harvester.pot | ||
output_file = ckanext/harvester-data-qld-geoscience/i18n/ckanext-harvester-data-qld-geoscience.pot | ||
width = 80 | ||
|
||
[init_catalog] | ||
domain = ckanext-data-qld-harvester | ||
input_file = ckanext/data-qld-harvester/i18n/ckanext-data-qld-harvester.pot | ||
output_dir = ckanext/data-qld-harvester/i18n | ||
domain = ckanext-harvester-data-qld-geoscience | ||
input_file = ckanext/harvester-data-qld-geoscience/i18n/ckanext-harvester-data-qld-geoscience.pot | ||
output_dir = ckanext/harvester-data-qld-geoscience/i18n | ||
|
||
[update_catalog] | ||
domain = ckanext-data-qld-harvester | ||
input_file = ckanext/data-qld-harvester/i18n/ckanext-data-qld-harvester.pot | ||
output_dir = ckanext/data-qld-harvester/i18n | ||
domain = ckanext-harvester-data-qld-geoscience | ||
input_file = ckanext/harvester-data-qld-geoscience/i18n/ckanext-harvester-data-qld-geoscience.pot | ||
output_dir = ckanext/harvester-data-qld-geoscience/i18n | ||
previous = true | ||
|
||
[compile_catalog] | ||
domain = ckanext-data-qld-harvester | ||
directory = ckanext/data-qld-harvester/i18n | ||
statistics = true | ||
domain = ckanext-harvester-data-qld-geoscience | ||
directory = ckanext/harvester-data-qld-geoscience/i18n | ||
statistics = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.