Show real vote counts #3363

Open
feld wants to merge 1 commit from gitlab-mr-iid-2096 into develop
Owner

Polls have always shown an inaccurate vote count because it is trying to show the count of voters for your local instance. We have had the real vote counts for a long time now and it gets refreshed periodically until the poll closes and then a final vote count is fetched from the origin.

Fixing this makes the poll information more useful to users especially on smaller instances.

image{width=618 height=294}

Polls have always shown an inaccurate vote count because it is trying to show the count of voters for your local instance. We have had the real vote counts for a long time now and it gets refreshed periodically until the poll closes and then a final vote count is fetched from the origin. Fixing this makes the poll information more useful to users especially on smaller instances. ![image](/attachments/2a9389c5-2d7b-41d3-b414-fdaee7e6d0b7){width=618 height=294}
120 KiB
Owner

So we don't have the people vote counts? I'm a bit confused with i18n removals

So we don't have the people vote counts? I'm a bit confused with i18n removals
Author
Owner

Displaying the count of local users who voted is not a useful metric

Displaying the count of local users who voted is not a useful metric
Owner

I thought it wasn't about local users but about votes (single-option polls) vs people voted (multi-option polls)

I thought it wasn't about local users but about votes (single-option polls) vs people voted (multi-option polls)
Author
Owner

If that was the intention it has always been broken because for single-option polls it has only shown the number of local users who voted.

If that was the intention it has always been broken because for single-option polls it has only shown the number of local users who voted.
Author
Owner

I just checked on a remote multiple-choice poll and it says "94 votes" which matches the amount when adding up each poll option.

The data for the object says: "voters" => [] so we don't have any voters to count.

The problem is that we receive no data that can indicate to us how many poll options each voter selected.

Now it's down to a language game: in a multiple choice poll, if you select two options is it really "two votes"? Or perhaps "Two votes, but one submission/response"?

We were definitely making an assumption that doesn't match the data we have access to in the backend right now. Is it possible that behavior was different back in the OStatus days?

I just checked on a remote multiple-choice poll and it says "94 votes" which matches the amount when adding up each poll option. The data for the object says: `"voters" => []` so we don't have any voters to count. The problem is that we receive no data that can indicate to us how many poll options each voter selected. Now it's down to a language game: in a multiple choice poll, if you select two options is it really "two votes"? Or perhaps "Two votes, but one submission/response"? We were definitely making an assumption that doesn't match the data we have access to in the backend right now. Is it possible that behavior was different back in the OStatus days?
Owner

i don't think we had polls in OStatus days

i don't think we had polls in OStatus days
Owner

So basically we don't and can't know number of voters, just number of votes? I guess it's ok to remove that counter there, but we should also do it for backend.

So basically we don't and can't know number of voters, just number of votes? I guess it's ok to remove that counter there, but we should also do it for backend.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin gitlab-mr-iid-2096:gitlab-mr-iid-2096
git switch gitlab-mr-iid-2096

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch develop
git merge --no-ff gitlab-mr-iid-2096
git switch gitlab-mr-iid-2096
git rebase develop
git switch develop
git merge --ff-only gitlab-mr-iid-2096
git switch gitlab-mr-iid-2096
git rebase develop
git switch develop
git merge --no-ff gitlab-mr-iid-2096
git switch develop
git merge --squash gitlab-mr-iid-2096
git switch develop
git merge --ff-only gitlab-mr-iid-2096
git switch develop
git merge gitlab-mr-iid-2096
git push origin develop
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!3363
No description provided.