BirkbeckCTP / typesetting

A plugin that replaced the Production and Proofing stages with an alternative process.
GNU Affero General Public License v3.0
0 stars 2 forks source link

Multiple clicks leads to multiple empty typesetting rounds being created #207

Open mauromsl opened 3 months ago

mauromsl commented 3 months ago

when a user clicks the "New typesetting round" button multiple times, it can lead to multiple empty rounds being created. This may happen whenever the server is too slow to respond, or the user is facing connectivity issues slowing the request/response cycle.

We could avoid this by ensuring no new rounds can be created when a given round has no tasks associated with it. Additionally, we can use the ConfirmableForm that comes with backend validation. The requirement of the backend validation of the user confirmation should avoid multiple chained requests being processed