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:

  1. Built functionality on my test site
  2. Enabled features
  3. Added a bundle, selecting the 'Include install profile' option but leaving the rest as default
  4. Selected all the features, downloaded an archive
  5. Added the download profile to a brand new Drupal installation
  6. 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

CommentFileSizeAuthor
#2 features_state_missing-2684071-2.patch1.95 KBmpotter

Comments

smaz created an issue. See original summary.

mpotter’s picture

Status: Active » Needs review
StatusFileSize
new1.95 KB

Here 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

  • mpotter committed 1f3512e on 8.x-3.x
    Issue #2684071 by mpotter: State: Missing is confusing
    
mpotter’s picture

Status: Needs review » Fixed

Committed to 1f3512e.

Status: Fixed » Closed (fixed)

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