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

WIP - Use a count instead of queries to get yes vote count #3474

Closed
wants to merge 1 commit into from

Conversation

come-nc
Copy link

@come-nc come-nc commented May 2, 2024

Not working yet, I get 4 instead of 2 with my test data, I think this is because orphaned votes should be excluded.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this May 2, 2024
@dartcafe
Copy link
Collaborator

dartcafe commented May 2, 2024

Right. Orphaned votes are identified by having no matching option.

@dartcafe
Copy link
Collaborator

dartcafe commented May 3, 2024

The problem ist the joined votes after joined options. So the counted votes get multiplied with the count of options.

Currently the counted votes are wrong, because of that.

I tried to change the join to a subquery, but it behaves strange. see #3477

@dartcafe
Copy link
Collaborator

dartcafe commented May 3, 2024

@come-nc Check the strategy in #3477
BTW: Orphaned votes are correctly counted, since they block any participants vote limit, too. The affected user is informed about this and may delete theese orphaned votes.

@come-nc come-nc closed this May 16, 2024
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.

None yet

2 participants