Extraneous changes are made to features permissions exports due to arbitrary ordering of roles on exported configuration.

For instance you may get extraneous diffs like the following which are functionally equivalent, but inconsistent from a code perspective;

@@ -43,8 +43,8 @@ function julio_administrative_unit_events_og_features_default_permissions() {
   // Exported og permission: 'node:julio_administrative_unit:update own julio_event content'
   $permissions['node:julio_administrative_unit:update own julio_event content'] = array(
     'roles' => array(
-      'member' => 'member',
       'administrator member' => 'administrator member',
+      'member' => 'member',
     ),
   );

Attached patch sorts the role output so that they are consistently rendered in resulting features code.

Files: 
CommentFileSizeAuthor
og-features-roles-ordering.patch671 bytesjgraham
PASSED: [[SimpleTest]]: [MySQL] 733 pass(es).
[ View ]

Comments

Status:Needs review» Fixed

Committed, thanks.

Status:Fixed» Closed (fixed)

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