Closed (fixed)
Project:
Commerce Features
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Aug 2011 at 18:26 UTC
Updated:
1 Jun 2012 at 18:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
raystuart commentedAttached 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.
Comment #2
recrit commentedre-roll of the patch as a p0 for use with drush:
git diff --no-prefix --relativeComment #3
rfay#1 is the candidate that needs review. Would love to see everything we can get into features get there.
Comment #4
raystuart commentedThis 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!
Comment #5
mrfelton commentedSlightly updated patch, works with latest commerce_coupon.
Comment #6
mrfelton commentedThis version uses features_var_export() to export the data, ensuring that arrays are rendered correctly rather than the string 'Array'.
Comment #7
mrfelton commentedFixes spacing issue in rendered export, and incorrect module dependencies.
Comment #8
pcambraFixed 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.