For example, in this export:

/**
 * @file
 * text_format.my_text_format.inc
 */

$data = (object) array(
  'format' => 'my_text_format',
  'name' => 'My Text Format',
  'cache' => '1',
  'status' => '1',
  'weight' => '0',
  'filters' => array(
    'filter_url' => array(
      'weight' => '-50',
      'status' => '1',
      'settings' => array(
        'filter_url_length' => '72',
      ),
    ),
    'filter_html' => array(
      'weight' => '-49',
      'status' => '1',
      'settings' => array(
        'allowed_html' => '<a> <em>',
        'filter_html_help' => 1,
        'filter_html_nofollow' => 0,
      ),
    ),
    'filter_htmlcorrector' => array(
      'weight' => '-46',
      'status' => '1',
      'settings' => array(),
    ),
  ),
);

$dependencies = array();

$optional = array();

$modules = array(
  0 => 'filter',
);

There is no information about which role can use this text format.

Comments

dagmar’s picture

Title: Text Formats are not exporting role that can use that format » Permissions are not automatically exported when Text Formats are exported

Ok, that export is correct, the role information should be provided in a different permission configuration.

Changing title to reflect the real problem.

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

Here is the patch.

dagmar’s picture

Status: Needs review » Fixed

Commited c1a8ff8

dragonwize’s picture

Do we really want to save the permissions with the format?

For dev/prod scenarios I can see it being nice but we have to start watching for race conditions because if a role was created in the same update and used here the role would need to be import first for it work.

For migration purposes I would never want perms attached to the content. I would export them separately if they were needed.

dagmar’s picture

StatusFileSize
new22.53 KB

Hm, interesting. I think we could implement a settings tab like this:

autoprocess-configuration-management.png

What do you think?

dragonwize’s picture

hmm, I don't understand your proposal enough to judge it. Where would those be? Are the options global or per config? What happens when you change them?

dagmar’s picture

This settings would be global, by default all enabled. If you, as a developer, know that you don't want to export permissions for your text formats, just uncheck the right option. Then the exports will not include the information for the permissions.

If you import those configurations, only items provided in $dependencies and $optionals will be processed.

Status: Fixed » Closed (fixed)

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