-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we add Version property to ContentItem class to get optimistic lock work properly? #15729
Comments
AFAIK the content lock is a missing feature |
@hishamco if I understand it correctly, YesSQL supports this feature. |
AFAIK Seb mentioned content lock long time a ago, we can use SignalR, so once the user starts to edit a content item it should trigger anyone else opening the same page to lock the content temporarily, so once he saves or cancels the update process, others can start editing |
@hishamco I got your idea. However, for a simple application that does not allow two administrators to override the same content, using optimistic lock is a good option. |
You could propose a PR |
@hishamco thank you for your suggestion. |
What's the use case, exactly? Two people saving a content item at the same time and overwriting each others' changes? |
It seems that this issue didn't really move for quite a while despite us asking the author for further feedback. Is this something you'd like to revisit any time soon or should we close? Please reply. |
Closing this issue because it didn't receive further feedback from the author for very long. If you think this is still relevant, feel free to reopen it with the requested details. |
Is your feature request related to a problem? Please describe.
So right now OC checks optimistic lock when saving a content item.
However, we can't manually set version value to a content item.
Therefore, we can't do optimistic lock over content item object.
Describe the solution you'd like
I think we should add
public long Version
toContentItem.cs
.This allow us to set Version's value from form's input when saving a content item and prevent multiple users trying to update a content item at the same time.
FYI, I started this topic as discuss and found it should be a new PR but I want to get idea/feedback before implementing it.
Please check.
#15721
The text was updated successfully, but these errors were encountered: