Add a batch job that removes orphaned references in a given field

Created on 9 June 2018, over 6 years ago
Updated 13 June 2024, 5 months ago

Problem/Motivation

Entity reference field items are not removed when the referenced entity is deleted.

Proposed resolution

Add a way to clean up dangling references in a batch job.

Remaining tasks

🐛 Remove orphaned (dangling) entity references when an entity is deleted Active

User interface changes

A New button in the field storage config form for entity reference fields. Clicking it starts a batch job which displays a short summary with the number of removed items after finishing.

API changes

None

Data model changes

None

Feature request
Status

Closed: won't fix

Version

10.2

Component
Entity 

Last updated about 10 hours ago

Created by

🇵🇱Poland blazey

Live updates comments and jobs are added and updated live.
  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024