inveniosoftware / invenio-communities

Invenio communities module.
https://invenio-communities.readthedocs.io
MIT License
5 stars 73 forks source link

Records that are part of a deleted community show deleted community #1161

Open chriz-uniba opened 2 months ago

chriz-uniba commented 2 months ago

Package version (if known): v12rc2 ? https://inveniordm.web.cern.ch/ 2024-06-24

Describe the bug

When deleting a community that contains a record, we find "rests" of the deleted community related to this record.

Steps to Reproduce

  1. Create a community
  2. Add a record to this community
  3. Delete the community
  4. See the following still available "community-parts"

image There we see the deleted community "Part of 2024-06-24-cz", when clicking on it we get image


When editing the record we see above the banner with the community. Here we cannot interact with it and we cannot delete it: image


Same for "new version" of the record

image


This seems likely be related to the "branding" that can be added via "Manage communities" - however, since the community was already deleted, you cannot remove the branding anymore?

image

Expected behavior

Deletion deletes all parts of the mention of the community - and especially does not lead to "internal server errors" due to clickable links.