The attached patch is an attempt at adding uuid support to commerce_product so that product entities can be exported via deploy/uuid entities in Features.

CommentFileSizeAuthor
commerce_product-uuid_support.patch1.81 KBmatason

Comments

rszrama’s picture

Just to clarify, since I don't recognize the hooks in there, is this integration with a uuid module? And is there any reason it must go into the product module instead of a module like Commerce Features?

matason’s picture

Hi rszrama,

Yes it's integration with Universally Unique IDentifier - http://drupal.org/project/uuid so together with Deploy - http://drupal.org/project/deploy a deployment plan can be created and included in a Feature.

There's a handbook page outlining the process here - http://drupal.org/node/1406136

I guess the same result could be achieved by implementing hook_entity_info_alter() etc although I've not tried that approach.

rszrama’s picture

Status: Needs review » Needs work

Does Deploy require any additional integration, like we have in Commerce Features? I'm not opposed to the idea on principle, but if there's a viable solution through one of these contributed modules, it may be the best place to start. I'm guessing we'd want uuid support for more than just products (i.e. all of our other entities, too), and wouldn't this require schema updates to add the uuid related columns to our table? Or are those altered on by the uuid module after load?

matason’s picture

Hi rszrama, apologies, I wasn't aware of commerce_features module. I've just have a quick look and it appears to support the exporting of the structure of entities which is great, I'll check it out further to see whether it supports exportable entity content which is what I am attempting to do.

If commerce_features module doesn't support exportable entity content then I'll also look at whether it makes more sense to focus a patch there rather than commerce.

Agreed, you'd want all entities exportable and yes those schema updates on done on an alter based on properties set on the entity by uuid module.

pcambra’s picture

This seems to me like a commerce_uuid module :)

matason’s picture

Hi pcambra, so I started work on it over there - http://drupal.org/sandbox/matason/1421900

nvahalik’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

The functionality can be found in Commerce UUID.