docs-invenio-rdm icon indicating copy to clipboard operation
docs-invenio-rdm copied to clipboard

v13: document subcommunities

Open alejandromumo opened this issue 1 year ago • 2 comments

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

alejandromumo avatar Oct 11 '24 13:10 alejandromumo

done

ntarocco avatar Jul 10 '25 16:07 ntarocco

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).

slint avatar Jul 21 '25 11:07 slint