inveniosoftware / invenio-communities

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

Tombstone does not render for a deleted community #1134

Closed alejandromumo closed 2 months ago

alejandromumo commented 3 months ago

Package version (if known): 13.0.3

Describe the bug

When a community is deleted, its tombstone does not render and there is an unhandled exception in Jinja:

jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'tombstone'

Steps to Reproduce

  1. Create a community
  2. Access the community page
  3. Click "Settings"
  4. Click "Delete community" in the "Danger zone" section and follow the procedure to delete it.
  5. Access the community page

Expected behavior

A tombstone should be displayed.

Screenshots (if applicable)

image

Additional context

There seems to be an issue with the records of the community that was deleted where their parent still is linked to the deleted community. The only impact I've seen so far is on the records search where each record still shows up àpart of `