Convert the entity_legal_document_version entity ID from string to serial

Created on 5 August 2020, almost 4 years ago
Updated 23 May 2023, about 1 year ago

Problem/Motivation

The

entity_legal_document_version

entity ID (key name) is a string, built using this static function:

public static function getDefaultName(EntityLegalDocumentVersionInterface $entity) {
  return $entity->bundle() . '_' . time();
}

This is unsafe.

Proposed resolution

  • Convert the entity_legal_document_version entity type ID from a string into a serial.
  • Rename the entity key from name to id.
  • Provide an update path.
  • Review also other base fields.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

Different storage for entity ID.

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

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.69.0 2024