I'd like to request that the generated configuration.inc file exclude the keyed index for each configuration item.

So instead of this:

$configurations = array (
  0 => 'content_type.article',
  1 => 'field.node.body.article',
  2 => 'field.node.custom_author.article',
  3 => 'field.node.field_article_media.article',
);

We'd have this:

$configurations = array (
  'content_type.article',
  'field.node.body.article',
  'field.node.custom_author.article',
  'field.node.field_article_media.article',
);

I often track and export new configurations so I can manually merge them with existing configuration, and currently it is awkward and very error-prone to do that.

By leaving the keyed index out, I can sort the combined configuration alphabetically, and avoid accidentally skipping a configuration because of a duplicate index.

CommentFileSizeAuthor
#2 1851356.2.patch882 bytesdagmar
#1 1851356.1.patch542 bytesgdrupal

Comments

gdrupal’s picture

Status: Active » Needs review
StatusFileSize
new542 bytes

This could be a really quick fix doing the trick...

dagmar’s picture

StatusFileSize
new882 bytes

This patch produces the following configuration.inc file:


// This file contains the list of configurations contained in this package.

$configurations = array(
  'content_type.article',
  'field.node.body.article',
  'vocabulary.tags',
  'field.node.field_tags.article',
  'image_style.large',
  'image_style.medium',
  'field.node.field_image.article',
  'permission.create_article_content',
  'permission.edit_own_article_content',
  'permission.edit_any_article_content',
  'permission.delete_own_article_content',
  'permission.delete_any_article_content',
);
lucascaro’s picture

Status: Needs review » Reviewed & tested by the community
dagmar’s picture

Status: Reviewed & tested by the community » Fixed

Committed and Pushed to 7.x-2.x

Status: Fixed » Closed (fixed)

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