Poll posts may not survive approval queue?

So I was looking to play around with CSS on polls, but creating a poll on Try resulted in a broken poll:
https://try.discourse.org/t/testing-poll-css/600

Here is what I attempted to enter (note that it works OK here on Meta):

[poll type=multiple min=1 max=4]
* A
* B
* C
* D
[/poll]
  • A
  • B
  • C
  • D

0 voters

1 Like

I created exact same poll on try and it’s working as expected: https://try.discourse.org/t/polls-are-broken/601

I wonder if polls break when the post is in approval queue? :thinking:

(Joshua’s poll topic on try was in approval queue and I approved it)

1 Like

Does rebuilding the HTML fix it?

Nope, tried that already.

1 Like

If this is an approval issue it is ultra low priority

Are we sure this is an approval issue? Arpit seemed to be thinking out loud, not confirming…

Meta and try run the same code.

Understood. Polls seem to be working fine here and on try at the moment - I’m concerned if the issue was approval, or something else (TL0, network, etc.)

2 Likes

@jomaxro I managed to repro this locally and I think you’re right that posts with a poll in the approval will result in the poll being permanently broken even if we try to rebake it. I’m looking into the root cause now.

7 Likes

PR in

https://github.com/discourse/discourse/pull/4675

Good catch @jomaxro

7 Likes