Skip to content
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

[Edit lock] Check for edit lock when editing data, not when opening element #724

Open
wants to merge 4 commits into
base: 1.x
Choose a base branch
from

Conversation

BlackbitDevs
Copy link
Contributor

Currently when 2 users open the same element, there is this warning:
Bildschirmfoto 2024-10-17 um 15 56 08

This confuses users because this even happens if they only want to look up things without changing anything. For this reason this PR changes the behaviour so that the edit lock does not get checked when opening an element but when editing it. As soon as any data of the element gets changed and thus the element gets dirty, the edit lock will get checked. The message in the popup window has been adjusted a bit:
Bildschirmfoto 2024-10-17 um 16 04 00

When the user chooses to continue editing (= clicks "Yes"), the edit lock will get released.
When the user clicks "No", the element will get closed and reopened.

Copy link

github-actions bot commented Oct 17, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link

@BohdanSheyko
Copy link

I have read the CLA Document and I hereby sign the CLA

@mattamon
Copy link
Contributor

mattamon commented Nov 8, 2024

@fashxp how will it be done in the new studio ui? Conceptual it sounds good to me.

@fashxp
Copy link
Member

fashxp commented Nov 11, 2024

not finally decided yet. but we have a concept to get notified about remote changes and what you want to do about them. so that edit lock might not be necessary at all anymore.

this change needs to be tested carefully though. maybe someone from the community can help us there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants