Reviewed & tested by the community
Project:
Features
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2021 at 06:20 UTC
Updated:
22 Dec 2023 at 03:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nedjoHi, I'm not totally clear on what the precise issue is. Could you please fill out "steps to reproduce"? Thanks!
Comment #3
holo96 commentedComment #4
holo96 commentedComment #5
nedjo@DavorHorvacki: Thanks, that makes it clear.
From the "steps to reproduce" it sounds like the issue is not to do with a defined bundle per se but that the module in question isn't a features module in the first place. I imagine a fix might include a call to
FeaturesManager::isFeatureModule(). The user message onFALSEmight be "[module name] is not a feature module." Updating the summary accordingly.Patch very welcome!
There might be a distinct issue, where a
*.features.ymlfile exists but no bundle is defined. If so, that would be a separate bug.Comment #6
holo96 commentedExactly, thanks
Comment #7
paulocsI'm working on it.
Comment #8
paulocsIsn't it already doing this verification?
I tried drush features-import test
I tried to run
drush features-import modal_pageand i got the error below:No such feature is available: modal_pageComment #9
holo96 commentedYes, but if you try with existing module that is not part of any features bundle (no module_name.features.yml) you won't have that error message, to be more precise, nothing will happen, neither config will be imported, neither you will get error message.
For example you can try any contrib modules: `drush features-import admin_toolbar`
Comment #11
paulocsComment #12
hmendes commentedHello,
Tested the MR from #10 and it worked for me. Changing this to RTBC.
Tested with Drupal 9.2.7 and Features 8.x-3.x-dev.