Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The drush fc command sometimes doesn't list components that the Features UI does.
This is because it's using features_get_feature_components(), whereas the UI uses features_get_components().
Comment | File | Size | Author |
---|---|---|---|
#2 | 2574639.features.drush-list-incomplete.patch | 567 bytes | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim commentedComment #3
mpotter CreditAttribution: mpotter commentedCan you give some examples? The features_get_feature_components() is specifically filtering the list to remove those with "features_source" . The comment says: "Returns components that are offered as an option on feature creation." So it seems like this might be done on purpose.
Comment #4
joachim CreditAttribution: joachim commentedWithout the patch, I am missing:
- commerce_customer
- field
- variable_realm
I agree that the first two look like they don't belong in the list.
variable_realm however is definitely something you'd want to export -- it was its absence that prompted me to investigate this.
Is variable_realm perhaps declared incorrectly? It's implementing hook_features_export_options() but not hook_features_api().
Comment #5
mpotter CreditAttribution: mpotter commentedYes, it should implement hook_features_api(), even if it just needs to return an empty array. Otherwise it's not detected as a valid feature source.