Computed fields should be excluded from the diff

Created on 19 November 2024, about 1 month ago

Problem/Motivation

Computed fields are not available to be configured on "/admin/config/content/diff/fields" but are used in the diff overview of an entity.
The form on "/admin/config/content/diff/fields" is built with with the entity field manager's getFieldStorageDefinitions() which does not return computed fields.
The entity diff overview (ex "/node/123/revisions/view/456/789/split_fields" iterates through all of the $entity's fields.

Steps to reproduce

Create a computed field and see that it shows on the diff.

Proposed resolution

Exclude computed fields from the diff display.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States recrit

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

Merge Requests

Comments & Activities

  • Issue created by @recrit
  • πŸ‡ΊπŸ‡ΈUnited States recrit
  • Pipeline finished with Failed
    about 1 month ago
    Total: 211s
    #342814
  • πŸ‡ΊπŸ‡ΈUnited States recrit

    The MR build is failing for phpstan errors unrelated to the 1 line change in the MR.
    Error from phpstan:

     ------ ------------------------------------------------------------------------------------------------------ 
      Line   src/Controller/NodeRevisionController.php                                                             
     ------ ------------------------------------------------------------------------------------------------------ 
             Ignored error pattern #^Method                                                                        
             Drupal\\Core\\Form\\FormBuilderInterface\:\:getForm\(\) invoked with                                  
             2 parameters, 1 required\.$# in path                                                                  
             /builds/issue/diff-3488283/web/modules/custom/diff-3488283/src/Controller/NodeRevisionController.php  
             was not matched in reported errors.                                                                   
     ------ ------------------------------------------------------------------------------------------------------
    
  • heddn Nicaragua

    Can we add tests?

Production build 0.71.5 2024