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

Voting: Flickering when voting #4070

Closed
MSoeb opened this issue Aug 30, 2024 · 3 comments · Fixed by #4089
Closed

Voting: Flickering when voting #4070

MSoeb opened this issue Aug 30, 2024 · 3 comments · Fixed by #4089
Assignees
Milestone

Comments

@MSoeb
Copy link

MSoeb commented Aug 30, 2024

Describe the bug
Flickering occurs durign voting. The best way to recognize it, is via vote delegation. After confirming the vote, there is a brief flickering between the buttons and the confirmation. However, this does not occur every time. Therefore, several transmitted votes are required to reproduce it in a meaningful way.

How to Reproduce
Steps to reproduce the behavior:

  1. open a meeting
  2. active vote delegation
  3. create 10 users as delegates
  4. delegate their vote to yourself
  5. open motions > create a motion > create a poll with admin and delegates as entitled vote groups and start it. If you're not present, set yourself as present. Try voting and check the flickering.

Expected behavior
No flickering should occur after voting has been completed. The confirmation of the vote should appear immediately.

Additional context
If you need further information, please contact @emanuelschuetze

@MSoeb MSoeb added this to the 4.2 milestone Aug 30, 2024
@bastianjoel
Copy link
Member

Talked to @emanuelschuetze who said that the buttons sometimes do not disappear after they were hidden for a brief moment and appeared again.

@bastianjoel
Copy link
Member

Only happens for users who can see the "Received votes" bar.

@bastianjoel
Copy link
Member

bastianjoel commented Sep 5, 2024

This is a race condition. In base-poll-vote.service.ts when a new poll object is passed as input to the component (which is the case when the vote bar updates) setuphasVotedSubscription is called and the has voted states are rerequested from the vote repo resulting in an override of outdated data to alreadyVoted if the voted request was not yet finished after the own vote was sent.

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

Successfully merging a pull request may close this issue.

3 participants