-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Endless Poll Creation Loop Displays Multiple Results #2357
Comments
@nebojsajsimic any update on this ? I am still able to reproduce this issue |
Can you test now @kneerose ? |
@bosko-m , I am still able to reproduce this |
I'll check this again, fix on alternative way so we will display only last created poll. |
@nebojsact I am still able to reproduce this issue:
Dev Environment Preview Environment CC: @bosko-m |
@kneexpected, so you can open and close polls, this is expected behavior,
change was that only the last closed pool is visible instead of a bunch of
opened and closed.
So yes, you can open new when you close the old one.
…On Mon, Dec 9, 2024 at 5:28 AM Niraj Duwal ***@***.***> wrote:
@nebojsact <https://github.com/nebojsact> I am still able to reproduce
this issue:
- The "Add Poll" button is visible even after the poll has been closed.
- Additionally, the API allows the creation of a new poll, regardless
of whether the previous poll is closed or not.
*Dev Environment*
https://dev-sanchonet.govtool.byron.network/proposal_discussion/2521
image.png (view on web)
<https://github.com/user-attachments/assets/dc2611f6-7779-4e86-bf13-65acf8971c3c>
*Preview Environment*
https://preview.gov.tools/proposal_discussion/683
image.png (view on web)
<https://github.com/user-attachments/assets/3c42e7aa-f1aa-4e35-8fd2-42e67c170528>
CC: @bosko-m <https://github.com/bosko-m>
—
Reply to this email directly, view it on GitHub
<#2357 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKSYINBVPZKO5T3FNVKWBC32EUL7JAVCNFSM6AAAAABRNA25S2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWHA3DGMJUHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@nebojsact , does this mean a user can vote on multiple polls for the same proposal? For instance, if a user has already voted on one poll and the poll owner closes it, then opens a new poll, can the same user vote again on the new poll for the same proposal? Additionally, based on your comments, if the poll owner closes a poll with more responses and subsequently opens and closes a new poll, does this mean the results of the old poll will be discarded?
https://www.loom.com/share/19f879a3df854c879c1d9ff7277fb5de?sid=de71a437-ade5-4050-987e-8d3605cd223c |
@kneerose as the logic for the poll was in place for opening and closing, I suppose that was made by request and description of functionality, yes if the user closes the poll, edit proposal and open new poll it is normal that old will be discarded. So @bosko-m can you help us with this logic? |
@kneerose @nebojsact
|
@nebojsact , Current behaviour of proposal poll on frontend
NOTE: If this is the expected and intended behavior for the UI, this ticket can be considered closable. CC: @bosko-m |
@kneerose In regards to your second part: "If the owner closes the new poll, the poll results are updated to reflect the new poll's results", what do you mean? Poll results are updated everywhere or only the last one (which I think should be right)? |
@bosko-m , after closing the new poll, the results are updated, and only the updated poll results are displayed. |
All good, understood. |
Area
Proposal Pillar
Domain
dev-sanchogov.tools
Which wallet were you using?
No response
Context
While attempting to view the poll results for a proposal, I noticed that after closing a poll, the "Add Poll" button becomes visible. This allows a new poll to be added, which generates another set of results. Repeating this process results in an endless loop where multiple poll results are displayed.
Steps to reproduce
Actual behavior
The system allows multiple poll results to be generated as polls can be repeatedly added and closed.
https://dev-sanchonet.govtool.byron.network/proposal_discussion/2029
Expected behavior
The "Add Poll" action should be restricted by the API once the poll has been closed, preventing further additions. Alternatively, only the latest poll result should be visible, and multiple results should not be displayed.
The text was updated successfully, but these errors were encountered: