Hello,

I would like to deploy a commerce product with deploy and features for tests in dev, integration, staging...

I installed uuid, entity_uuid and commerce_uuid for that.

I have a deploy plan but it contains only the product display because I didn't find the way how to add the product to it.

Here are the files in my feature:

test.deploy_plans.inc:

<?php
/**
 * @file
 * test.deploy_plans.inc
 */

/**
 * Implements hook_deploy_plans_default().
 */
function test_deploy_plans_default() {
  $export = array();

  $plan = new DeployPlan();
  $plan->disabled = FALSE; /* Edit this to true to make a default plan disabled initially */
  $plan->api_version = 1;
  $plan->name = 'test_deploy';
  $plan->title = 'Test Deploy';
  $plan->description = '';
  $plan->debug = 0;
  $plan->aggregator_plugin = 'DeployAggregatorManaged';
  $plan->aggregator_config = array(
    'delete_post_deploy' => 0,
  );
  $plan->fetch_only = 1;
  $plan->processor_plugin = '';
  $plan->processor_config = array();
  $plan->endpoints = array();
  $export['test_deploy'] = $plan;

  return $export;
}

test.features.uuid_entities.inc:

<?php
/**
 * @file
 * test.features.uuid_entities.inc
 */

/**
 * Implements hook_uuid_default_entities().
 */
function test_uuid_default_entities() {
  $entities = array();

  $entities['test_deploy'][] = (object) array(
    '__metadata' => array(
      'type' => 'node',
      'uri' => 'node/60e05bdd-114a-4ebb-b6c7-db50d384ed93',
      'cause' => FALSE,
    ),
    'body' => array(),
    'comment' => 0,
    'field_display_product' => array(
      'und' => array(
        0 => array(
          'product_id' => 'cdae7125-8986-4842-a762-f39fb53168db',
        ),
      ),
    ),
    'language' => 'und',
    'log' => '',
    'promote' => 0,
    'status' => 1,
    'sticky' => 0,
    'title' => 'Test',
    'tnid' => 0,
    'translate' => 0,
    'type' => 'test_display',
    'uid' => 0,
  );

  return $entities;
}

The problem is that on the integration site drush revert gives:

WD Entity UUID: Attempted to save an entity with an invalid UUID

and no content is created. The feature code is the same but it does not appear in the deploy plan.

How can I achieve a correct transfer of product between drupal sites (I would like an easy way beacuse it is made for content creators who are not developpers)?

Thanks.