When enabling the core workspace module and paragraphs, the published state of paragraphs is 0

Created on 17 May 2022, almost 3 years ago
Updated 26 September 2024, 7 months ago

Problem/Motivation

I have been investigating an issue where Workspace and Paragraphs seem to get confused around published states. I used xdebug to try and see where things were going odd, and it brought me to the preSave functionality of entity-reference_revisions.

I am not sure why this is happening though, as am not used to the code, but it feels like some defaults are set as a paragraph is a child entity, and these defaults aren't getting updated in there.

I do already have a ticket on the paragraphs module, but now I have delved in, I think it may be better here now, as it feels the issue like in the preSave. - https://www.drupal.org/project/paragraphs/issues/3263591#comment-14517706 πŸ’¬ Paragraphs & workspaces - stage to live results in unpublished paragraphs. Active

Steps to reproduce

- Enable Workspace and Paragraphs
- Add some paragraph types (ensure the published status field is visible on the edit form)
- Switch to the "stage" workspace
- Create a new node and save
- Edit the node, adding a new paragraph (the status checkbox should be checked by default)
- Edit the node, you will see the status checkbox is now unchecked

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom retrodans

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.

  • πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

    Is this issue still valid? It's from 2022 and workspaces are in core now. A lot has changed.

    If workspaces do still have an issue with entity_reference_revisions then that would have a large impact and deter folks from trying it.

Production build 0.71.5 2024