Problem/Motivation
In a workspace, a view for a supported non-translatable entity type displays default revision values instead of the workspace-specific pending revision ones.
Steps to reproduce
Install Workspaces and the contrib Redirect module with issue #3313540: Convert the Redirect entity type to revisionable applied.
- In Live, create a redirect with the source path
/old. - Create a workspace and activate it.
- Edit that redirect and change its source path to
/new. - Visit
/admin/config/search/redirect.
The listing still shows /old instead of the pending revision value.
Proposed resolution
The list of fields to read from the revision table currently requires a revision data table. Build it from the revisionable field storage definitions on the base table instead. Translatable entity types are not affected by this change.
Remaining tasks
Review.
User interface changes
Nope.
Introduced terminology
N/A
API changes
Nope.
Data model changes
Nope.
Release notes snippet
N/A
Issue fork drupal-3619974
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
amateescu commentedComment #4
gabesulliceComment #5
plachRTBC +1, if we happen to touch this again we may address the nit above.
Comment #7
catchAgreed the variable name change is OK in a follow-up, the database API itself calls columns fields quite a lot so not really inconsistent with that anyway.
Committed/pushed to main and 11.x, thanks!