Check if there's sufficient test coverage for base fields with simultaneous code-based and config-based overrides

Created on 14 August 2014, almost 11 years ago
Updated 7 April 2025, 3 months ago

Follow up from #2283977: Create a new ConfigEntity type for storing bundle-specific customizations of base fields β†’ . That issue introduces the ability to have config-based overrides of base fields via 'base_field_override' config entities. However, it retains HEAD's prior ability to also have code-based overrides via ContentEntityInterface::bundleFieldDefinitions(). If both approaches get used on the same base field for the same bundle, various problems can arise (see comments #142-#146 of that issue). So, to ensure robustness, let's either explicitly remove support for that (i.e., throw an exception when someone tries to add a config-based override of a code-overridden field), or else if we think it's important to support this possibility, then add tests for it and fix what we find.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

field system

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Wanted to bump this one more time.

Production build 0.71.5 2024