Should Features show empty packages with no configuration assigned to them?

Right now if you have a content type called "mycontent" that is defined in a module with a different name, such as "mymodule", Features will correctly assign the content type to "mymodule" but will also list a new blank features called "mycontent" in the not-exported section.

Wonder if we should be removing these blank packages at the end of processing assignment plugins, or if we create another assignment plugin to handle this task?

Comments

mpotter created an issue. See original summary.

nedjo’s picture

Title: Remove empty features? » Remove empty features
Category: Support request » Task

Yeah, I can't see the point of showing packages that don't already exist and have no configuration assigned to them.

What if they do already exist (were previously exported and/or installed)? If they're now entirely empty, they may be deleted. But otherwise they may contain other code that's still needed. So it seems like we need to regenerate them, even empty.

mpotter’s picture

I think it might make sense to show empty packages if they are already exported (uninstalled or enabled). So this would just be to hide the empty not-exported packages.

mpotter’s picture

Status: Active » Needs review
StatusFileSize
new992 bytes

Patch for removing empty packages.

  • mpotter committed 93c5fcc on 8.x-3.x
    Issue #2697007 by mpotter: Remove empty features
    
mpotter’s picture

Status: Needs review » Fixed

Committed to 93c5fcc.

Status: Fixed » Closed (fixed)

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