When admin attempt to upload large zip testcase (200MB+ compressed)
• The website becomes lags for all users for 1–3 minutes
• The interface displays "บันทึกสำเร็จ"
• The database and testcases remain unchanged
For example, if I update a problem's score (from 100 to 101) and testcases at the same time, the problem's score
still remains 100 and the testcase is empty.
Issue 1: False success toast notification
Adding this in apps/web/src/pages/admin/index.tsx might solve the problem:
if (response.status === 200) {
toast.success('บันทึกสำเร็จ', { id: toastId })
}
else {
toast.error('ไม่สามารถบันทึกได้', { id: toastId })
}
Issue 2: Database and testcases remain unchanged
My guess is Cloudflare 100 second timeout for HTTP responses.
When admin attempt to upload large zip testcase (200MB+ compressed)
• The website becomes lags for all users for 1–3 minutes
• The interface displays "บันทึกสำเร็จ"
• The database and testcases remain unchanged
For example, if I update a problem's score (from 100 to 101) and testcases at the same time, the problem's score
still remains 100 and the testcase is empty.
Issue 1: False success toast notification
Adding this in
apps/web/src/pages/admin/index.tsxmight solve the problem:Issue 2: Database and testcases remain unchanged
My guess is Cloudflare 100 second timeout for HTTP responses.