-
Notifications
You must be signed in to change notification settings - Fork 26
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
Removing users from meeting, using user.delete or remove from groups, as one new action #1426
Comments
What do you think @jsangmeister |
This is a backend problem; since they are sent in the same request, the backend should be able to handle this. |
2 ways for the client to handle this case:
For the moment we have to use the route with handle separately.
@rrenkert, @jsangmeister What do you think? |
After talking to @r-peschke i would prefer idea 3. |
I'm fine with using the |
to simplify the client error-handling IMO we should resolve it using solution 3, but here is no hurry;-) |
OpenSlides/openslides-client#1524 is merged. Can we close this issue? |
As far as I know that PR is more of a quick client-side fix for the immediate problem, while this is supposed to be the permanent solution |
currently not needed. |
Reproduce:
What will happen:
The client will send multiple actions in the same request: one user.delete for the users who had only one meeting and one user.update to remove the users that had multiple meetings from our meeting.
This will cause the datastore to send an error response along the lines of: "The following locks were broken: groups/"
Clearly the two requests both try to access the same field at the same time, causing conflicts.
We should either separate them, or look for a solution in the backend.
The problem is solved by using 2 separate transaction by changing the route to backend to handle_separately. The disadvantage of this solution: it require an extended error handling, because it may be, that 1 transaction fails. Therefore I let the issue open with level low. Then we will realize solution3, do it in an own action, see below. That would imply changes for the client, using the new action, too. We should change the interface, because the client suggestion of separating the cases may be outdated.
The text was updated successfully, but these errors were encountered: