Skip to content

Parallel edits cause multiple draft versions #5550

@qqmyers

Description

@qqmyers

In working with datasets with 100+ files, we've seen an issue that is probably related to #2132 and #2545 :
if a user(s) working on the same dataset try a save for an edit to a file or the dataset before a prior save has finished, you end up with multiple draft versions, each with some of the changes. (It's a little confusing because you can only see the latest draft version in the web interface). The prior changes to grey out/remove the add/edit metadata, publish, etc. buttons helps but doesn't address the case where multiple windows were open or when multiple users/browser are in play.

To handle the underlying cause, we've gone ahead to implement an editInProgress lock that will a) warn users that the dataset can't be edited temporarily, and b) stop any attempts from other pages/browsers that would otherwise corrupt the database. (This is somewhat analogous to the Dcm lock...).

Also - FWIW: in trying to recover from an instance of this with 4 draft versions, I was able to delete a datasetversion manually (essentially recursing to delete entries in every table that referenced the version or entities associated with the version) and by using the delete draft button in the gui. I don't know when #5542 was introduced, but I think that the same issue that stopped you from deleting one draft version when starting from a published version view would have affected deleting in the multiple draft case. My guess is that, if anyone has this problem in a prior version, deleting form the draft page and/or updating to get the #5542 fix would allow removal of the extra drafts without having to touch the DB.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions