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.