Nabla-NTNU/nablaweb

Disable submit button after submission of vote in live voting system

Aperta

#653 aperta il 2 mar 2023

 (0 commenti) (0 reazioni) (0 assegnatari)Python (7 fork)auto 404
enhancementgood first issuevote

Metriche repository

Star
 (24 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

During SKE (Store Kanoniske Ensemble (Large Canonical Ensemble)), many (nabla-)components were experiencing error messages after sending votes several times. To the best of my knowledge, this is because the votes are enqueued to ensure that all votes are counted. There is, as of today, no safeguard for sending in several votes at once. Fortunately, only one vote is counted. However, they flood the queue and leave (nabla-)components discombobulated by the errant messages filling up the screens of their computing device of choice.

One proposed solution is to disable the button while the vote is being processed. For simplicity's sake, a timeout for a given time interval could be considered.

Guida contributor