Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294909

Deleting latest of multiple workspaced revisions deletes workspace association

$
0
0

Problem/Motivation

Deleting a revision in a workspace removes the workspace association for that entity, even if there are previous revisions that were made in the workspace. This means the previous revision is no longer tracked in the workspace.

This is quite disastrous as it destroys changes that were made in that workspace.

Manual developer intervention is needed to re-associate the older revisions with the workspace.

Steps to reproduce

1. Install drupal + workspaces
2. Create a page
3. Switch to stage workspace
4. Edit and save the page in the workspace
5. Do #3 again, make sure to change something
6. Switch to live
7. Go to Revisions on the page
8. Verify 3 revisions (the live one, plus 2 revisions from the workspace)
8. Delete the latest revision
9. Go to Workspaces and select Stage
10. Page is no longer in the workspace.

Additionally the workspace_association table is empty. The 2nd to last revision should have been used.

Proposed resolution

If revisions still exist in the workspace, instead of deleting from workspace_association, the revision ID needs to be updated to the latest revision. Currently it just deletes the record.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 294909

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>