Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using drush fex
to export an existing feature, if you forget to provide the --bundle
option, Features assumes you are using the default bundle even if the features.yml files or the feature name says otherwise.
In my case, the main issue is that my "Optional" assignment plugin is not configured like the default bundle's one so everytime I export my features via drush, all the files got messed up.
Proposed resolution
Use the bundle of the features we export instead of the default bundle.
Remaining tasks
Patch, review, commit.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
nedjoThat sounds right.
Comment #3
Dane Powell CreditAttribution: Dane Powell at Acquia commentedI can confirm this bug on 8.x-3.x-dev
I don't think this is minor... developers use this command dozens of times a day, and it's pretty counter-intuitive and aggravating.