field definition empty in group_update_9203

Created on 17 August 2023, 10 months ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

While trying to upgrade group 1.5 to group 2.x, i am facing some issues with group module update. The error "Missing langcode field" was raised.

Steps to reproduce

drupal/group: 1.5
drupal/group_content_menu: 1.1.0,
drupal/groupmedia: 2.0.0-rc2",
drupal/groupmenu: 1.0.0-beta3
drupal/subgroup: 1.0.2

Patch from issue 2797793 ✨ Entities identified by strings as group content Closed: won't fix uninstalled

Upgrade modules to group 2.x compatible version.

field storage definition are empty from

$last_installed_schema_repository->getLastInstalledFieldStorageDefinitions('group_content');

Proposed resolution

Get field definition from field storage definition and set them to last installed field storage definition. With this workaround I was able to proceed all group updates and groups still have their contents.

Remaining tasks

Find why last install definitions are empty for 'group_content'.
Validate the workaroud is valid.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024