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 format normalization configuration #175

Merged

Conversation

seitenbau-govdata
Copy link
Member

We wanted to deactivate the ckan format normalization by config. But we are surprised that the config parameter ckanext.dcat.normalize_ckan_format seems to be ignored. We invested some time and found out the reason.
The reason is that the config parameter was read from the config file but was interpreted as string what is still the default behavior for an ini file. So, the value False in the config file was interpreted as string 'False' and not as boolean what will lead to the situation that the expression and normalize_ckan_format was always True, because a not empty string is interpreted as True.

The pull request adds the conversion of the param to type boolean.

* because the values in the ini file are interpreted as string
* Fix tests and add test for format normalization
@seitenbau-govdata
Copy link
Member Author

@amercader or @metaodi Maybe one of you will find time to have a look at this PR? Thanks in advance!

@amercader amercader merged commit a3ee1c0 into ckan:master Feb 22, 2020
amercader added a commit that referenced this pull request Feb 25, 2020
@seitenbau-govdata seitenbau-govdata deleted the fix-format-normalization-configuration branch November 5, 2021 10:37
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