Piestar:
Well a lock wasn't my original thought, nor is it required to accomplish my goal, which is simply a warning that it is currently being edits.
Lock or "being edited" warning are the same thing really, it's just whether you forcibly stop the user from editing the file or simply warn them. The difference is in how you react if a file is being edited; the complexities, pitfalls and limitations are exactly the same.
I think a last modified check would stop any potential issues, similar to how the simultaneous post detection work, and it's pretty simple to implement (which means it took about 90 minutes to code and test).
Next version will have it. If you update a sheet or description and it's been modified/created since you started editing then it'll push you back to the edit screen with an alert at the top. For sheets it'll go something like thus;
Warning! This character sheet has been updated since you started also editing it. It is strongly advised that you review the other changes and contact whoever made them, as denoted by the 'last edited by' comment at the end of the sheet. If you do want to overwrite all the other changes with yours, continue by pressing "Update Character Sheet" again. |
The warning for descriptions will be;
Warning! This character description has been updated since you started also editing it. It is strongly advised that you review the other changes. If you do want to overwrite all the other changes with yours, continue by pressing "Update Character Description" again. |
Blue text (above) will be a hyperlink that links to the view page for the sheet/description.