mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
FIX: poll ranked choice voter expansion should append additional voters (#28432)
Currently, for Ranked Choice results and voter list expansion, the code is replacing the voter list with the newly fetched page of voters instead of appending to the existing voter list. This is resolved in this PR and brings it in line with regular polls. See: https://meta.discourse.org/t/ranked-choice-poll-does-not-reflect-change-of-votes-in-outcome/321227/18
This commit is contained in:
@ -979,14 +979,6 @@ acceptance("Poll results", function (needs) {
|
||||
return helper.response({
|
||||
voters: {
|
||||
db753fe0bc4e72869ac1ad8765341764: [
|
||||
{
|
||||
id: 1,
|
||||
username: "bianca",
|
||||
name: null,
|
||||
avatar_template:
|
||||
"/letter_avatar_proxy/v4/letter/b/3be4f8/{size}.png",
|
||||
title: null,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
username: "foo",
|
||||
@ -1004,16 +996,6 @@ acceptance("Poll results", function (needs) {
|
||||
return helper.response({
|
||||
voters: {
|
||||
def034c6770c6fd3754c054ef9ec4721: [
|
||||
{
|
||||
rank: 1,
|
||||
user: {
|
||||
id: 1,
|
||||
username: "bianca",
|
||||
name: null,
|
||||
avatar_template:
|
||||
"/letter_avatar_proxy/v4/letter/b/3be4f8/{size}.png",
|
||||
},
|
||||
},
|
||||
{
|
||||
rank: 1,
|
||||
user: {
|
||||
|
Reference in New Issue
Block a user