Problem/Motivation
I'm experimenting with Features for Drupal 8 in how I can use it to manage multiple sites with similar config.
I did the following, in an attempt at creating a profile:
- Built functionality on my test site
- Enabled features
- Added a bundle, selecting the 'Include install profile' option but leaving the rest as default
- Selected all the features, downloaded an archive
- Added the download profile to a brand new Drupal installation
- Installed Drupal using the profile, enabled the features + features UI modules, then went to the Features config page
On this page, it marks all of the modules as 'Missing' in a red button/link. Clicking the link takes you through to configuring the feature.
This was extremely confusing - I thought there was a problem with how I'd generated the features, or that I'd not been doing something correct, or it wasn't in the right place. Instead the module was present, just not installed.
Proposed resolution
State should say something else, such as 'Not available', 'N/A', 'Not installed', 'Disabled' (as per D7) or 'Install', with a link to the modules/extend page. This would be a bit clearer on why the state isn't present, plus helpful in knowing how to resolve it.
Remaining tasks
Provide a patch to alter the text + link of the displayed state when the module is not installed.
User interface changes
Different text/link/button colour when a module is not installed.
I'm happy to work on a patch for this, if you agree that this would be a good idea? My suggestion would be a link to install the module, as it's not clear how to enable a feature in comparison to the D7 version.
Cheers
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | features_state_missing-2684071-2.patch | 1.95 KB | mpotter |
Comments
Comment #2
mpotter commentedHere is a patch to improve the "Missing" state a bit.
1) Adds a new css class and color (blue)
2) Only shows "Missing" in the right-most status column if module is installed
Comment #4
mpotter commentedCommitted to 1f3512e.