docs-invenio-rdm
docs-invenio-rdm copied to clipboard
v13: document subcommunities
service = current_communities.service
Community = service.record_cls
parent = Community.pid.resolve("<slug>")
parent.children.allow = True
parent.commit()
db.session.commit()
service.indexer.index_by_id(parent.id)
https://github.com/zenodo/zenodo-rdm/blob/master/scripts/ec_transfer_records.py
COMMUNITIES_SHOW_BROWSE_MENU_ENTRY = True
the way children get added to a parent is either:
- subcommunity-invitation request which is from the parent to invite the child
- subcommunity request which is from the child to the parent
right now there is only a UI for the latter option which is visible via https://zenodo.org/communities/eu/subcommunities/new on Zenodo
Otherwise it is possible to add the parent community to the child in the same way that you add children.allow = True
document how to unlink subcommunity properly
done
We have an entry in the v13 release notes, but there is no dedicated page on how to configure/setup sub-communities (programmatically for now).