Migrating from Media Entity to Media in core creates a new source field where one already existed

Created on 11 April 2021, over 3 years ago
Updated 15 August 2021, over 3 years ago

Problem/Motivation

I had several media types to migrate from Media Entity to Media core, including a Soundcloud type. I followed the upgrade steps provided by Media Entity .

In the end, it was found that a new field had been created as the source configuration field for the Soundcloud media type, even though it already had one.

This is a similar issue report: #2927149: Updating from Media Entity to core Media creates a new video source field

Steps to reproduce

I haven't reproduced it, but here are my original steps:

1. Update media_entity and media contrib including media_entity_soundcloud from 1.x to 2.x branches
2. Run drush mecu - all requirements are met
3. Run database updates
4. Check fields on the Soundcloud media - it now contains a new field "field_media_soundcloud" that is set as the source field.

Proposed resolution

I'm not sure. A possible fix may be found at the linked issue?

I noted along the way that in the 1.x branch the type configuration is mapped to 'source_url_field' instead of 'source_field' like the others. Maybe that's relevant.

If any more info is needed, let me know. Thanks!

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada othermachines Edmonton, Alberta

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.

Production build 0.71.5 2024