Create a 'bc' top level item in serialization.settings config object

Created on 30 October 2017, about 7 years ago
Updated 20 April 2024, 7 months ago

This is follow to the API First Initiative in DrupalCon Vienna

Problem/Motivation

Currently in core/modules/serialization/config/schema/serialization.schema.yml there are 2 elements that start with "bc_".
These are backwards compatibility settings to determine if certain serializers should be used.

There may more(many more?) settings needed like these as we address problems in core's serialization process.

Proposed resolution

To better organize this we should create a top level "bc" time in the 'serialization.settings' config object. All bc settings would be put under this. So
serialization.settings.bc_primitives_as_strings would be changed to serialization.settings.bc.primitives_as_strings

Remaining tasks

  1. Determine if \Drupal\serialization\RegisterSerializationClassesCompilerPass::normalizerBcSettingIsEnabled would need to be updated. Or would it just work.
  2. Determine BC policy for this change 😜.Presumablyy we would have to still have read the existing keys until 9.0.
  3. Write patch

User interface changes

None

API changes

None

Data model changes

Schema changes to 'serialization.settings' config object

πŸ“Œ Task
Status

Closed: works as designed

Version

8.5 ⚰️

Component
SerializationΒ  β†’

Last updated 10 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024