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

Conversation

FuhuXia
Copy link
Member

@FuhuXia FuhuXia commented Sep 25, 2024

Bring changes from

Set optional config ckanext.datajson.max_resource_count to be 1500.

@FuhuXia
Copy link
Member Author

FuhuXia commented Sep 25, 2024

Verified on catalog-dev. A error is generated for a record with 10k+ resources.

image

@FuhuXia FuhuXia marked this pull request as ready for review September 25, 2024 14:59
@FuhuXia FuhuXia requested a review from a team September 25, 2024 14:59
Copy link
Contributor

@jbrown-xentity jbrown-xentity left a comment

Choose a reason for hiding this comment

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

This will work, one suggested improvement...
The main reason is the less we do in the .profile, the faster startup should be.

Comment on lines +144 to +146
# Max number of resources to be allowed in a dataset to be harvested
export CKANEXT__DATAJSON__MAX_RESOURCE_COUNT=1500

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.

@FuhuXia FuhuXia merged commit efe13cd into main Sep 25, 2024
20 checks passed
@FuhuXia FuhuXia deleted the update-datajson branch September 25, 2024 20:05
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.

2 participants