I think all these issues with concurrency will be fixed if we just grab all of the users, tasks, and bids on swipe refresh, compare with local and replace anything new or changed. Right now it grabs all tasks and updated/adds the ones that are needed. Bids are updated when the task is clicked, but user is updated on periodic sync (15 mins).The user will be grabbed from server on the start of ViewTaskActivity.
There are two ways to solve the issue but I'm tired and having trouble communicating. Either:
- brute force sync on refresh (ie grab all bids, users, tasks)
- brute force sync on refresh (ie grab all bids, tasks)
- fix updateTaskMetaData to sync bids as needed
(note that all tasks are currently being grabbed on refresh)
I think all these issues with concurrency will be fixed if we just grab all of the users, tasks, and bids on swipe refresh, compare with local and replace anything new or changed. Right now it grabs all tasks and updated/adds the ones that are needed. Bids are updated when the task is clicked, but user is updated on periodic sync (15 mins).The user will be grabbed from server on the start of ViewTaskActivity.
There are two ways to solve the issue but I'm tired and having trouble communicating. Either:
(note that all tasks are currently being grabbed on refresh)