+ Add Question

Offline sync from chrome app created 500 tasks from 10!


For some reason the chrome app kept in offline mode even after network was reestablished. I was connected through our corporate vpn. Chrome switched automatically to our proxy but the little red icon on top stayed there.

I haven't seen the api but apparently there is an edge case where the synchronization is not atomic or at least progress is not reported at the task level atomically. If something happened in the middle, does the client knows where to start from or does the server knows to discard the whole update?

So now try to delete 500 tasks without range selection! Please implement range selection not just disconnected multiple selection.


All responses

Jacques Morel  premium
Replied on Oct 02, 2012 - 23:50 UTC

Actually the app cycles between the red icon and the update icon every 10s.

Jacques Morel  premium
Replied on Oct 03, 2012 - 00:11 UTC

While browsing my settings I got the following error just in case it helps. Was it an issue on the backend? "Too many connections"

Bad Request
Unknown error happened: Could not create a connection on server {'_rhost': 'todoist.czsjukk553i9.us-west-1.rds.amazonaws.com', 'server_name': 'unnamed-server', 'use_unicode': True, 'compress': False, 'charset': 'utf8', 'db': 'todoist', 'resolve_host': None, 'id': None, 'host': 'todoist.czsjukk553i9.us-west-1.rds.amazonaws.com', 'user': 'todoist', 'refresh_host': at 0x2ba51b8>, 'logger': , 'password': xxxx, 'port': 3306}. Error was Traceback (most recent call last): File "/home/ec2-user/todoist/libs/ist_libs/python/parts/db/wrapper.py", line 587, in createConnection charset = dbinfo.charset) File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (1040, 'Too many connections')

David Trey  staff
Replied on Oct 03, 2012 - 05:38 UTC

Hello Jacques,

we're sorry for the inconvenience. If you work offline, all changes you make are being stored offline in your browser in the correct order what and when has been done/added/moved/edited and once you synchronize them (by clicking on the triangle icon), they will synchronize with the server which will only discard changes made to items that doesn't exist. For example - if you would delete an item while being online through one browser, but have Todoist opened in offline mode in a different browser and would edit this item offline, this information would be discarded as the item would not be found.

I'm not sure how the issue you're describing could happen, but I've passed it to the developers and will notify you if we identify the source of this issue or may need any additional information. Thank you for your report.

Best regards,