Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix is_organization for custom organization type schema#437

Merged
wardi merged 4 commits into
ckan:masterfrom
avdata99:fix_org
Mar 26, 2025
Merged

Fix is_organization for custom organization type schema#437
wardi merged 4 commits into
ckan:masterfrom
avdata99:fix_org

Conversation

@avdata99
Copy link
Copy Markdown
Member

@avdata99 avdata99 commented Feb 26, 2025

CKAN core defines as default is_organization = False for the IGroupForm
https://github.com/ckan/ckan/blob/master/ckan/plugins/interfaces.py#L1352

Also, CKAN check is a group is an organization using this property
https://github.com/ckan/ckan/blob/master/ckan/lib/plugins.py#L223-L226

CKAN group index views at ckan/views/group.index uses this is_organization property.

If a custom organization_type is defined with a schema file through ckanext-scheming we need to ensure is_organization = True

This PR fixes this.

Also, to release 3.0.1 is proposed. A new tag release-3.0.1 is required
Also, GitHub action fixed

@pdelboca
Copy link
Copy Markdown
Member

pdelboca commented Mar 4, 2025

@avdata99 looks good but I would add a nice verbose comment over that line.

This touches on some poorly documented behaviors of CKAN so a simple is_organization = True without the context of this PR will be difficult to debug and maintain in the future.

Comment thread ckanext/scheming/plugins.py
Co-authored-by: Patricio Del Boca <[email protected]>
@avdata99 avdata99 requested a review from pdelboca March 7, 2025 13:17
@avdata99
Copy link
Copy Markdown
Member Author

This is probably ready to go @pdelboca

@pdelboca
Copy link
Copy Markdown
Member

pdelboca commented Mar 14, 2025

@wardi any feedback or suggestions on this PR?

I'm not sure how to handle the release cycle of ckanext-scheming but this looks a good candidate for a minor release.

@wardi wardi self-assigned this Mar 20, 2025
@wardi wardi merged commit 9ecccbb into ckan:master Mar 26, 2025
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.

3 participants