davidhealey / waistline

Libre calorie counter app for Android. Built with Cordova.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food upload functionality is broken

savchenko opened this issue · comments

Would be great to receive this notification before all information is entered:

image

But that isn't shown until you press the upload button is it?

Correct. How about:

  1. Check if the upload endpoint returns 200 and happy to accept a new item.
  2. If it doesn't - either prohibit user from entering new data (it will be lost anyway) or add an ability to save it locally and upload it later.

I don't think we can check the end point without sending some data to it. Also between the check and you pressing the upload button the problem might occur.

Saving the data locally is probably the better option here, with the ability to upload it at a later date.

local save would be huge, I got the same error today