Task Update Lock-Up
Opened this issue · 3 comments
There seems to be a lock-up issue when updating a task status. Not much else is known about the lock-up at this time. Will update with details as more info arrises.
To duplicate:
-create a task with only a task name, DO NOT start the timer.
-Save task
-go back into same task, select the 'in progress' status.
-save task
These steps reproduce the lockup 100% of the time for me. This leads me to believe that the issue lies with update statement and possibly an issue with not catching the nonwrite before it attempts to write the task detail changes to the db.
This issue appears to be fixed now. I believe the issue was derived from the rel tag values of status bar segments being strings while the taskStatus variable formula was looking for integers. i.e. ( selectedStatus == 1 ? 2 : selectedStatus ). After removing the quotes around the rel tag values (making them integers when gathered) I cannot reproduce the bug. Waiting to close the issue until Justin can also verify.
I was able to reproduce the error by creating many tasks. The bug seems to be linked to large amounts of tasks being created and the synchronousness of phone gap sql transaction callbacks and html DOM rendering. When many HTML DOM elements are being rendered the action takes longer, which conflicts with the SQL transaction callback queue timing.