Dangling Entity Reference IDs appear in facet

Created on 15 June 2022, about 3 years ago
Updated 13 April 2024, over 1 year ago

Problem/Motivation

When an entity reference is deleted sometimes the ID dangles

Steps to reproduce

Create a facet off a taxonomy tags vocabulary
Tag a number of items
Check Transform entity ID in aggregated field to label
Delete the term and you will see the old taxonomy ID

Proposed resolution

Add sub-setting to Transform entity ID processor so that it filters out IDs

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Haven't experience this in some time and entity_ref_purger solves dangling issues for me. Will close for now.

  • Status changed to Active 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

    I'm running into this right on a project using a 3.x release. If the maintainers want to close this as won't fix, that's ok, but I think outdated is inaccurate. I'm going to reopen.

    Exposing the ids of deleted entities is unexpected and undesirable behavior. We should fix the processor to unset the dead facets by default. I don't think we even need to expose a way to continue the current behavior. I can't imagine anyone liking it the way it is.

  • πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

    danflanagan8 β†’ changed the visibility of the branch 2.0.x to hidden.

  • πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

    I'm coming around to thinking there are too many edge cases to try to get this to work well in the processor.

    I think I'm going to just use the "Exclude specified items" processor configured to use a regex and exclude any value that is all numbers. (And I'll be careful to run it after the entity id /entity label conversion).

Production build 0.71.5 2024