You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is normal in Drupal to not update the entities that are referencing an item that is deleted. The expectation is on any code using the list to check that they still exist. I remember it's tripped up Search API several times. There's a core issue to alter this behaviour https://www.drupal.org/project/drupal/issues/2723323
Task:
So despite the tests now passing as we are checking referenced entities exist before using them; but because we are handling updates, and core would like to handle deletions in the future. For consistency, we should add a hook_delete that corrects the overview/page entity references on deletion. This could offer the opportunity to remove all pages if the overview is deleted for example?
The text was updated successfully, but these errors were encountered:
Background:
Additional context:
It is normal in Drupal to not update the entities that are referencing an item that is deleted. The expectation is on any code using the list to check that they still exist. I remember it's tripped up Search API several times. There's a core issue to alter this behaviour https://www.drupal.org/project/drupal/issues/2723323
Task:
So despite the tests now passing as we are checking referenced entities exist before using them; but because we are handling updates, and core would like to handle deletions in the future. For consistency, we should add a hook_delete that corrects the overview/page entity references on deletion. This could offer the opportunity to remove all pages if the overview is deleted for example?
The text was updated successfully, but these errors were encountered: