-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisions don't seem to work with paragraphs #31
Comments
I can confirm this issue. I'm seeing similar error messages when trying to save a revision of a node with paragraphs on it:
|
Likely related to: Which is waiting on a decision about core. It seems as though there is some interest in moving entity revision functions into core, though PR needs work: |
Cross post: I made a new branch for testing, which adds a dependency on Entity Plus (although it requires this PR on Entity Plus: https://github.com/backdrop-contrib/entity_plus/pull/16/files). Revisions with Paragraph fields are working for me using this branch. Anybody care to test? https://github.com/backdrop-contrib/paragraphs/compare/entityplus If Entity Revision functions get into core we may not need to keep the Entity Plus dependency, but will need to test obviously. |
@laryn Tested this issue as well with |
After more testing I got the following PHP notice after reverting a node to any revision - it's not coming from Paragraphs module directly, but it's probably related:
|
@sternhagel I broke that last one out into a separate issue since it seems to happen more broadly on save/updating an entity that has a Paragraphs file field attached. |
I tried using the entityplus branch. That gave me fatal errors until I also patched entity_plus for some unfixed bugs. Having done that, I was able to save a new revision of the node. What are the obstacles to getting these modules fixed? Do tests need to be written? Do we need to resolve the issue of entity_plus vs core? |
Did you use the PR I linked for entity plus? If you didn't use the PR on entity plus, did you have additional changes or patches to add? |
I ended up using the PR and then read more carefully your note telling us to do that, d'oh. So I think I was on the configuration you were aiming at - the entityplus branch of paragraphs + the entity_plus pull request 16. The errors on saving a node with "new revisions by default" enabled went away. I didn't try anything more extensive than that. |
Running the entityplus branch with the 1.0.4 release of entity_plus, I am able to add and remove paragraphs and save the node with revisions enabled, without error. Using the diff module I'm able to see differences in the paragraphs for the node between revisions. |
Any chance of a new release sometime soon? This particular bug is biting me lately! If not I'll try to create a patch for myself soon. :) |
@jackaponte Here's a pre-release: |
Awesome, thanks so much @laryn! |
Haven't done any further testing yet but I see this when trying to save a revision on a node that has paragraphs field:
The text was updated successfully, but these errors were encountered: