Image field settings for default_image value not migrate to media field

Created on 9 September 2019, about 5 years ago
Updated 5 June 2023, over 1 year ago

On the image file field, the Default image includes an image.
But migration does not pass the value to the media field.

Steps to replicate:

Create an image field -> set default image
Run drush migrate:file-media-fields node bundle image image
The media field is created with no default image value.

Drupa

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia gigimaor Narangba/Brisbane

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.

  • First commit to issue fork.
  • Issue was unassigned.
  • πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

    Agree with @anybody currently, this is a manual step because it's related to the media field config.
    We are planning to start working with a new big release where we gonna add many new help features. To simplify the migration process.
    And this issue will be a good extra help feature.

  • @hitchshock opened merge request.
  • πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

    First of all, we need to provide a solution that will allow us to migrate an image from the field settings to the media image entity.
    This is necessary because it is possible that such an image will be used only in the settings. And according to the current behavior, it will never be migrated to the media.

    I prepared such a solution for that.

  • πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

    Made a separate ticket to fix the migration of the image from default_image setting to the media entity - πŸ› Allow to migrate the default_image of the image field Fixed

    To fix this issue we can create a separate drush command for that.
    FYI. We have a plan to make a new submodule migrate_file_to_media_ui that will provide a lot of help features to simplify the configuration and migration process.

Production build 0.71.5 2024