-
Notifications
You must be signed in to change notification settings - Fork 11
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
Voting delegation bug #223
Comments
Investigated this and found out that this happens because the vote-service's This is clearly a vote-service bug, so I am transferring it there |
After testing this behaviour with different combinations of delegated votes (deli to deli, admin to deli, etc.) we did not figure a combination out for which the bug does not happen. Meaning so far this bug happens for every delegated vote |
I can not reproduce this. Please tell me step by step what to do. If I create to delegates and delegate the vote from d2 to d1 and vote for both, the request:
returns
So I can see, that for the poll with ID 3 the users with id 3 (user d1) and 4 (user d2) have voted. Did you expect something else? |
Step by step guide of what I did:
creating the delegates:
as the delegate:
result: the buttons for the delegates do not disappear
the ids from the three different votes and the one id from d1 additional info:
|
I did all you steps in a localprod environment and can not reproduce the error. In my case, it returns
as expected The versions I am running are:
Can you tell me the versions of testintern.staging? |
The old version used the meeting_user_id as user_id Fixes OpenSlides#223
I found the bug. It was a bug in the rtf-branch. When I translated the user_$_ fields to the meeting_user fields, I did a mistake and used the meeting_user.id as user.id. I did the same mistake when I changed the unit-test, so the unit test did not catch this. When I tried to reproduce it here, I only used one meeting, therefore the user.id == meeting_user.id and everything worked. PR #227 should fix it |
Description: If a user could vote for another user, the meesage "Voting succesful" won't appear, instead the voting buttons are still active and the user could click again on them. Correctly a error message is shown.
Addtionally: After page reload the clicked button of delegation is once more not colored.
example - first vote is done. second one also, but buttons still active.
Reproduction
precondition: Two users in a meeting are needed with a vote delegation from A (group admin) to B (group delegates).
What should happen:
If a user has voted, the buttons should disappear and the message "Voting succesful." should appear. So the user can easily see, that the vote was correctly send.
The text was updated successfully, but these errors were encountered: