Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294415

[META] Make active config save format match the default yml file (order and quotes)

$
0
0

Inspired by #1938570: Make views active config save format match the default yml file (order and quotes)

Problem/Motivation

Some active config files (like sites/default/files/config__rzyR0s0KXhc9jjr4I7HQl3nK300t-85ew12vzYGO2A/active/something.else.whatever.yml) are saved with a different format than the default yml files (under core modules config directories like core/modules/something/config/something.else.whatever.yml).

Proposed resolution

check the files by resaving configurations, and diffing them.
open issues for ones that differ, and add to the list of issues in the issue summary.
make a comment here and update the issue summary for ones that are confirmed to match.

Remaining tasks

make a list of ones that need to be checked.

Sub-Issues

Files checked that are ok and do not need issues

  • action.settings.yml
  • aggregator.settings.yml
  • book.settings.yml
  • dblog.settings.yml
  • file.settings.yml
  • field.settings.yml
  • node.settings.yml
  • search.settings.yml
  • filter.format.php_code.yml
  • rest.settings.yml
  • shortcut.settings.yml
  • simpletest.settings.yml
  • statistic.settings.yml
  • text.settings.yml
  • tracker.settings.yml
  • update.settings.yml

Files checked that are not very sure or need further review

  • translation.settings.yml
  • translation_entity.settings.yml

User interface changes

No UI changes.

API changes

No API changes.

Steps to reproduce#

  1. Install as usual
  2. Install the module that needs check and visit the module's config folder for the configuration file name
  3. find the same file in sites/default/files/config_[hash]/active folder.
  4. Compare both files with some diff tool

Coding standards#

  1. Do not use double quotes for strings, use single quotes.
  2. Use single quotes for label values even if they are one word for consistency.
  3. Never use quotes for key definitions and types (in Drupal, key names and types are strings by definition and should not have spaces).
  4. In Drupal, integer values contained YAML config data files are cast to string and therefore are wrapped in single quotes.
  5. Watch your indentation levels. This is not a code style requirement per say, since it is important to use proper indentation in YAML so you get the desired schema structure.

Viewing all articles
Browse latest Browse all 294415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>