mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:03:40 +08:00
60d62f1b7e
Initially, the poll results display a maximum of 25 voters per option. If the number of voters exceeds this limit, a button allows users to load additional pages of voters. When this button is clicked, a method is called to retrieve the additional voter information. However, there was a bug where the local tracked object was not properly updated for ranked choice voters. This is due to the existence of two attributes per option: one indicating whether new data is currently loading, and the other containing the list of voters. Instead of updating the entire option key with the voters list, the fix requires updating the voters attribute only. This is a small but critical change. The pull request also includes a new test that significantly increases coverage, addressing this issue and beyond. |
||
---|---|---|
.. | ||
poll-breakdown-test.js | ||
poll-builder-disabled-test.js | ||
poll-builder-enabled-test.js | ||
poll-in-reply-history-test.js | ||
poll-pie-chart-test.js | ||
poll-quote-test.js | ||
poll-results-test.js | ||
polls-bar-chart-test-desktop.js | ||
polls-bar-chart-test-mobile.js |