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

update ckanext-datajson for max_resource_count #1465

Merged
merged 2 commits into from
Sep 25, 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
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ CKANEXT__DATAGOVCATALOG__ADD_PACKAGES_TRACKING_INFO=false
# Render recent view using AJAX call to boost page loading speed
CKANEXT__DATAGOVTHEME__JS_RECENT_VIEW=true

# Max number of resources to be allowed in a dataset to be harvested
CKANEXT__DATAJSON__MAX_RESOURCE_COUNT=1500

# Remove all translated pages, for less crawling
CKAN__LOCALES_FILTERED_OUT=am ar bg bs ca cs_CZ da_DK de el en_AU en_GB es es_AR eu fa_IR fi fr gl he hr hu id is it ja km ko_KR lt lv mk mn_MN my_MM nb_NO ne nl no pl pt_BR pt_PT ro ru sk sl sq sr sr_Latn sv th tl tr uk uk_UA vi zh_Hans_CN zh_Hant_TW

Expand Down
3 changes: 3 additions & 0 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export CKANEXT__DATAGOVCATALOG__ADD_PACKAGES_TRACKING_INFO=false
# Render recent view using AJAX call to boost page loading speed
export CKANEXT__DATAGOVTHEME__JS_RECENT_VIEW=true

# Max number of resources to be allowed in a dataset to be harvested
export CKANEXT__DATAJSON__MAX_RESOURCE_COUNT=1500

Comment on lines +144 to +146
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we can't add this to the ckan.ini file? I think this would be the safer place; that way it will be setup by default. I don't see a reason to have a different number between local dev and cloud.gov deployment...

Copy link
Member Author

Choose a reason for hiding this comment

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

Tried that before, moved newly created config into ckan.ini but it had no effect.
Just tried again with 50e4055, same result. No effect when set in ckan.ini.

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, looks like there is a typo in the last try. trying again.

# Set up the collection in Solr
echo Setting up Solr collection
export SOLR_COLLECTION=ckan
Expand Down
2 changes: 1 addition & 1 deletion ckan/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ckan @ git+https://github.com/GSA/ckan.git@8c4a517efeac80db098cc6ba144cb742bbeca
-e git+https://github.com/ckan/ckanext-archiver.git@cbfadf9fbf10405958fdef9f77a7faedc05aa20b#egg=ckanext_archiver
ckanext-datagovcatalog==0.1.0
ckanext-datagovtheme==0.2.34
ckanext-datajson==0.1.25
ckanext-datajson==0.1.27
ckanext-dcat @ git+https://github.com/ckan/ckanext-dcat@b8ebf24004cd3f3edb7f9d01c87c20259c102093
ckanext-envvars==0.0.3
ckanext-geodatagov==0.2.9
Expand Down