Problem/Motivation

Whilst deploying the image having focal point across the environment(Eg. Dev to Stage), focal point does not gets deployed on the higher environment in the 1st attempt when uploading the image from media browser (media module). We used work around i.e. would require to deploy it twice to get the focal points deployed on the higher environments. This is issue is due to unsupported media widget type "media_generic" in focal point module which was leading to this issue.

Proposed resolution

Applied patch to support widget type of media module (media_generic).

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

prashantgajare created an issue. See original summary.

prashantgajare’s picture

Added a patch to support media module widget type viz "media_generic"

prashantgajare’s picture

Status: Active » Needs review
prashantgajare’s picture

Status: Needs review » Needs work
bleen’s picture

Are there steps I can follow on a vanilla Drupal install where I can see this issue occur and then compare that to what happens with your patch

prashantgajare’s picture

Hi @bleen

Sure! Below are the steps to reproduce this issue.

Steps to reproduce the issue :
1) Load the vanilla drupal setup with deploy, focal point and media modules and enable all.
2) Create a content type having image field and set the widget as in it.
3) Add above content type on source and destination environments so that it can be deployed across.
4) Create a content using above content type on source environment and add an image via media browser image widget.
5) Add the created content on the deploy plan and deploy the content to the destination environment.
6) On 1st deploy image file is deployed but focal point not as media widget type i.e. "media_generic" is not supported in focal point module.

Let me know if any thing else is required.

Thanks

prashantgajare’s picture

Status: Needs work » Needs review