Comments

raystuart’s picture

Status: Needs work » Needs review
StatusFileSize
new5.58 KB

Attached is a patch adding this functionality. This is my first patch with git format-patch, and I saw your comment here - http://drupal.org/node/1146430 - so please do let me know if there's anything wrong with it. I did re-clone and test the patch with git am, and it seemed to work fine.

This is working for me to export a coupon type feature with multiple fields and field groups.

recrit’s picture

re-roll of the patch as a p0 for use with drush:
git diff --no-prefix --relative

rfay’s picture

#1 is the candidate that needs review. Would love to see everything we can get into features get there.

raystuart’s picture

This has been working for me for a while now, with a fairly complex coupon entity example. The coupon entity includes a field_collection entity which in turn includes 2 more field_collection entities, and everything exported into a feature just fine. Since then, I've drush fu 'ed the feature a number of times; removed, modified, and added fields within the various entities involved; and so far everything has continued to work well.

Anyone else been using this? Please do post a quick message if you think it is RTBC. Thanks!

mrfelton’s picture

Slightly updated patch, works with latest commerce_coupon.

mrfelton’s picture

This version uses features_var_export() to export the data, ensuring that arrays are rendered correctly rather than the string 'Array'.

mrfelton’s picture

Fixes spacing issue in rendered export, and incorrect module dependencies.

pcambra’s picture

Status: Needs review » Fixed

Fixed some little things with dd() and performance issues as reported in #1572330: Don't cause excessive cache and menu rebuilds and committed!

Thanks everyone participating in this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.