Rewrite module to use default field storage

Created on 9 September 2024, 4 months ago

Problem/Motivation

The biggest part of the issues this module has are caused by its custom field storage implementation. This also adds a lot of unnecessary complexity to the module. It's reinventing the wheel, since Drupal has a whole field storage system built in that automatically deals with things like translations.

Proposed resolution

Rewrite the module to stop using the custom storage service. Instead, make the caption a standard field property whose storage is handled like any other field property in Drupal.

Remaining tasks

Provide an upgrade path.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

  • Issue created by @dieterholvoet
  • 🇧🇪Belgium dieterholvoet Brussels

    The minimum Drupal version is bumped to 9.2 because of the usage of the usage of the new field widget hook . I also added back the Image module dependency since it was incorrectly removed in 💬 Support Drupal 10 Fixed . Setting to Needs work for the upgrade path implementation.

  • Merge request !12Resolve #3472997 "Rewrite module to" → (Open) created by dieterholvoet
  • Status changed to Needs work 4 months ago
  • Pipeline finished with Success
    4 months ago
    Total: 233s
    #277927
  • Pipeline finished with Success
    4 months ago
    Total: 136s
    #277942
  • 🇫🇷France bachbach Le Havre

    It's reinventing the wheel, since Drupal has a whole field storage system built in that automatically deals with things like translations and revisions.

    exactly what i though after hours trying to make caption in nested parragraph translation to work :(
    then i found your issue and your patch work like a charm!

    had to :
    pmu the module (obviously delete all the caption contents)
    composer require dev version of module
    apply your patch
    enable the module again

    thanks for your work !

Production build 0.71.5 2024