b62621b requires the JSON fields to be updated but update hook is missing

Created on 7 July 2022, almost 2 years ago
Updated 23 March 2023, over 1 year ago

Problem/Motivation

b62621b causes the fields to be updated but the required update hook updating all JSON fields in the site accordingly is missing.

<!--break-->

I just updated a site from Drupal 9.1 to 9.4 including all modules. I couldn't do that earlier as I needed to fix sth. blocking the update to 9.2.

As I was using json_field in the dev version that as well got updated to the latest commit. After the update I got this error for all JSON fields in the site:

I don't know why the commit b62621b causes the fields to be updated and can't see any obvious reason in the diff, but as the updates can only be performed by an update hook on production sites ( devel_entity_updates β†’ is only meant for development environments) this must definitely be fixed for the final 1.0 release.

Steps to reproduce

Install the module on a Drupal site with composer require drupal/json_field:dev-1.x#27d86871, create a JSON field on any entity type, create some contents. Then do a composer update drupal/json_field --with-dependencies and check the status report.

Proposed resolution

Implement the required update hook updating all JSON fields in the site.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria mvonfrie

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.

  • πŸ‡¦πŸ‡ΉAustria mvonfrie

    I guess I wanted implement the required update hook but then realized that I don't understand the module enough to do it and had (and still have) no time to dive deeper into the code.

  • Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update 11 months ago
    Not currently mergeable.
  • @damienmckenna opened merge request.
Production build 0.69.0 2024