# Enquete: Escolha Classificada: Não deve ser permitido votar quando todas as opções forem abstenções

**URL:** <https://meta.discourse.org/t/poll-ranked-choice-should-not-be-able-to-vote-when-all-options-are-abstained/334669>\
**Category:** Bug\
**Tags:** polls\
**Created:** [Novembro 5, 2024, 9:47pm UTC](https://meta.discourse.org/t/poll-ranked-choice-should-not-be-able-to-vote-when-all-options-are-abstained/334669 "2024-11-05T21:47:39Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [Novembro 5, 2024, 9:47pm UTC](https://meta.discourse.org/t/poll-ranked-choice-should-not-be-able-to-vote-when-all-options-are-abstained/334669/1 "2024-11-05T21:47:39Z")

</div>

STR:

- Inicialmente, todas as opções estão definidas como abster-se
- Corretamente, o botão Votar está desativado
- Selecione uma opção e dê uma classificação
- Corretamente, o botão Votar agora está ativado!
- Altere de volta para Abster-se
- O botão Votar ainda está ativo e é possível votar para abster-se completamente!

Isso é inútil, pois o algoritmo ignora todas as opções abster-se, portanto, isso deve ser evitado para não registrar votos inúteis e desperdiçar linhas do banco de dados.

@nat descobriu isso, estou apenas registrando!

---

<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:** [Novembro 5, 2024, 9:48pm UTC](https://meta.discourse.org/t/poll-ranked-choice-should-not-be-able-to-vote-when-all-options-are-abstained/334669/2 "2024-11-05T21:48:36Z")

</div>

Mas não tema, @merefield está aqui! 🦸‍♂️ :

> <https://github.com/discourse/discourse/pull/29601>
>
> \* FIX: front-end: prevent voting when all ranked choice votes are "Abstain"
> \* F…IX: API: return an error when there is a call to vote on ranked choice where all votes are "Abstain".
> \* FIX: Database: add migration to delete historic collections of zero rank votes (for ranked choice only, grouped by user/poll).
> \* FIX: Model: missing annotation.
> 
> @nattsw

---

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [Novembro 29, 2024, 1:17pm UTC](https://meta.discourse.org/t/poll-ranked-choice-should-not-be-able-to-vote-when-all-options-are-abstained/334669/3 "2024-11-29T13:17:27Z")

</div>

Este tópico foi automaticamente fechado após 3 dias. Novas respostas não são mais permitidas.
