- Issue created by @MegaKeegMan
- πΊπΈUnited States djdevin Philadelphia
I thought this was already happening, where whatever revision is reverted, that just gets copied to the latest revision in the current workspace.
Does it give you an error?
- πΊπΈUnited States MegaKeegMan
Currently I have edited content in a workspace called "Stage". I am able to revert to previous revisions while I am in "Stage". But say I switch to live and made edits in liveβI am not able to revert to previous revisions while I am in live. I can do a little bit more testing to try and understand more precisely how it behaves.
- πΊπΈUnited States MegaKeegMan
Okay. So the moment content gets added to a workspace, you can only revert to revisions of that content while in that workspace. If you edit it again on live, you cannot revert to a revision. If you edit in another workspace, you will not be able to revert while in that workspace either. There is no error. Simply the "revert" buttons are missing while view the revision history. They are only present in the first workspace where the content editing occurred.
- πΊπΈUnited States MegaKeegMan
One potential UX issue that may arise out of this change (which is a typical issue with workspaces) is just helpful contextual clues or maybe just more warnings when trying to revert, and a reminder about which workspace you are actually in and which workspace the reversion will belong to. Just a consideration, but probably not required for completion.
- πΊπΈUnited States MegaKeegMan
Here is an example of what I see when I am looking at revisions from the default workspace (no revert button)
- πΊπΈUnited States djdevin Philadelphia
Ah, are you using Workspaces Extra? That module provides a custom controller for the revision history that removes the operations button.
So I don't think this is an issue with Parallel workspaces but probably an issue for that project to allow revisions to be reverted.
Our team does this for a few edge cases so I know it's a feasible workflow.
- πΊπΈUnited States MegaKeegMan
Thank you for the info. I'll take a look to confirm what you are saying later today, and then move this issue to the correct project. I had assumed that this was something that core prevented intentionally, and that this module should work around it. A reasonable assumption, but good to know that it is not true.
- πΊπΈUnited States MegaKeegMan
Okay, will make an issue fork at some point, but I found I was able to get the revert buttons to show up by removing the 'revert' and 'revert revision' items from the array on line 441 of wse.module in the wse_entity_access hook. For reference, this code was added in https://www.drupal.org/project/wse/issues/3490853 π Allow viewing and reverting to live revisions inside workspaces Active
Is this or a similar change something that would be considered for merge?