Table entity string IDs should be 255

Created on 22 January 2023, almost 2 years ago
Updated 7 February 2023, almost 2 years ago

Problem/Motivation

  • Right now, the entity_usage table columns target_id_string and source_id_string are limited to 128 characters.
  • This is a too low value as, for instance, the entity reference (`EntityReferenceItem`) field allows to refer entities with string IDs up to 255 characters. See this line which, by not settings a length, falls back to the default settings of `StringItem`, which is 255, see the default setting.
  • This limitation blocks this module to be used with entity types such as RDF Entity , which are using URIs as entity IDs.

Proposed resolution

  • Align with entity reference field type max string length for IDs by updating the entity_usage table columns target_id_string and source_id_string max length from 128 to 255.
  • Provide an update path test.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

The columns target_id_string and source_id_string are able to store string entity IDs up to 255 characters.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024