# Ranked choice polls don't do runoffs correctly

**URL:** https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097
**Category:** Bug
**Tags:** polls, fixed
**Created:** [July 29, 2024, 8:40pm UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097 "2024-07-29T20:40:10Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [July 29, 2024, 8:40pm UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/1 "2024-07-29T20:40:11Z")

</div>

This ranked choice poll has 15 voters. The result says Fantasy won in the first round.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/3/f/f3ff37394099658b196cb8188ddebf5371d745bc.png)

However, it only has a 7 of the 15 votes for rank 1, which is not a majority. Since ranked voting requires a majority, there should be at least one runoff in this case.

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/b/3fbac63afafa4d01438ae84298e5c87f0e7a36cf.png)

> **[What are you reading today?](https://forums.learnnatively.com/t/what-are-you-reading-today/38/3151?u=seanblue)**
>
> Oh neat; seems like Discourse has posted new polling options. 😮 I’m reading books, I promise. I need to make an update here soon… poll I wonder if the ranked choice could be a new way to poll for book club reads? poll

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 30, 2024, 10:41am UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/2 "2024-07-30T10:41:13Z")

</div>

@merefield do you want to look at this?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 30, 2024, 10:42am UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/3 "2024-07-30T10:42:24Z")

</div>

I will take a look at your issue in time.

Can you please PM me the votes export using the export button (might be under the cog)

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [July 30, 2024, 1:27pm UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/4 "2024-07-30T13:27:54Z")

</div>

Sorry, I’m not an admin so I don’t think I have that option. Let me know if there’s anything I can do as a regular user.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 30, 2024, 2:28pm UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/5 "2024-07-30T14:28:40Z")

</div>

If you could ask an admin for it I’d be most grateful.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 1, 2024, 1:30pm UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/7 "2024-08-01T13:30:01Z")

</div>

Raised a PR (currently in draft) for this.

[https://github.com/discourse/discourse/pull/28191](https://github.com/discourse/discourse/pull/28191)

It was a fairly simple bug in the majority check (most of the PR is a new test based on this exact example)

@seanblue let’s discuss in our PM you are happy to move forward with this change.

Once we’ve discussed together, I’ll mark this Ready for Review.

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [August 2, 2024, 1:52am UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/8 "2024-08-02T01:52:06Z")

</div>

I responded in PM, but everything looks good to me. The admin of this site has been busy lately and never responded to my request for the data, so I appreciate your time investigating it even without the data.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 2, 2024, 5:15am UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/9 "2024-08-02T05:15:17Z")

</div>

Great to see people using this functionality and nice when people report issues in such detail, making it much easier to track down 👍

PR has been approved, I guess it will be merged imminently.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [August 4, 2024, 5:15am UTC](https://meta.discourse.org/t/ranked-choice-polls-dont-do-runoffs-correctly/319097/10 "2024-08-04T05:15:31Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
