Ignore field definition removals/additions from fields with custom storage

Created on 22 February 2016, over 8 years ago
Updated 30 July 2024, 4 months ago

Problem/Motivation

Pathauto users currently are confused by entity field definition mismatch errors appearing on the status report.

That is because pathauto has to make path fields computed. The strange part about that is that getFieldStorageDefinitions() "eats" computed fields, so it's as if it vanished.

The thing is that already in core, that field uses custom storage (actually: no storage at all). So we go from custom storage to computed.

Proposed resolution

As quickly discussed with @plach, I'm proposing to ignore any change and deletion (possibly addition too?) of fields with custom storage [in status reports].

See also SqlContentEntityStorageSchema::requiresFieldStorageSchemaChanges(), which already ignores most changes of storage definitions that has custom storage. Which makes sense, as there's absolutely nothing that it could do anyway.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component
Entity 

Last updated about 4 hours ago

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • Status changed to Closed: outdated 4 months ago
  • 🇳🇿New Zealand quietone

    There has been no follow up to the prompt 2 years ago for more information. Therefor, I am closing this is as outdated.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

    Thanks!

Production build 0.71.5 2024