Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
og-features-roles-ordering.patch | 671 bytes | jgraham | |
Comments
Comment #1
amitaibuCommitted, thanks.