Block saving draft if another user changed it in the meantime
User Story
As a user, I want to have each draft versioned, so that no one of my colleagues can make simultaneous changes to the same draft. If that happens, he/she will be informed that this version of draft has already been approved.
Acceptance Criteria
-
Whenever the user clicks 'Save Draft' it upgrades it's "lastUpdated" field in the database. -
If another user edits the same draft at the same time, when he tries to save, the system checks if the currently edited draft object has the same version as in database. If not, user is notified that some changes were introduced in the meantime and he needs to edit it one again.
Definition of Ready
-
User Story can be broken down no further -
Acceptance Criteria and Story Points are agreed upon by development team and PO
Definition of Done
Edited by Joanna