Remove Entity Reference UUID dependency

Created on 14 February 2025, about 2 months ago

Problem/Motivation

Currently we have a dependency on entity_reference_uuid which is only used on two base fields in grant entity (user, assignee). Because both fields are meant to be filled via code there is currently only one benefit I know which is in views as easy to use relation.
This dependency is curretnly the main blocker for D11 version of grant incl. the grant_base sub module which doen'nt need entity_reference_uuid but we can only set one composer dependency: 📌 Automated Drupal 11 compatibility fixes for entity_reference_uuid Needs review

Steps to reproduce

-

Proposed resolution

  • Change basefield definition to pure string also with 128 max char (as also used by entity_reference_uuid).
  • Create also for user data a computed field as already done for referenced entity (see related issue).
  • Remove info and composer dependencies.

Remaining tasks

change code

User interface changes

Sadly existing views configs which uses entity_reference_uuid based relation are breaking with WSOD.
Warning: Undefined array key "relationship" in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 800 of core/modules/views/src/Plugin/views/HandlerBase.php).
Warning: Trying to access array offset on value of type null in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 800 of core/modules/views/src/Plugin/views/HandlerBase.php).
The views configs needed to be updated e.g. by using new strategy. If something is missing please open additional issues.

API changes

-

Data model changes

No, the data is stored identically. Because of this we don't need an update hook.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024