-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Export Document Version Property #567
base: main
Are you sure you want to change the base?
Conversation
@MikeAlhayek Please approve the workflow check |
What's the issue that you are trying to resolve? |
The Version field in the exported database is used to do a sync lock check, e.g. there is now a sync lock in Yessql but not in OC |
I am confused because it was added in YesSQL for OC and we do use it in OC already, example: |
Yes, I understand, but I'm talking about a situation where a user is updating content from a page. |
This is exactly the scenario that is covered in my example. By default the second user overwrites the changes from the first user. With the flag on SaveAsync then it will be detected and the second user gets an exception. |
It's called optimistic concurrency. |
However, although we currently have
|
This example is not very appropriate. Can't think of a suitable example for a while 🤣 |
The purpose of this PR is to export the Version attribute on the document to be used for synchronized lock checking in OC.
Issue associated with the OrchardCore repository was not found,