Skip to content
Snippets Groups Projects

Show real vote counts

Open feld requested to merge real-vote-counts into develop
1 unresolved thread

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

Edited by feld

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • feld changed the description

    changed the description

    • Maintainer

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

    • Author Maintainer

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

    • Maintainer

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

      Edited by HJ
    • Author Maintainer

      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 Maintainer

      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?

    • Maintainer

      i don't think we had polls in OStatus days

    • Maintainer

      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.

    • Please register or sign in to reply
Please register or sign in to reply
Loading