boyle / 2018-measure-stress

Using machine learning to investigate sympathetic activation of the autonomic nervous system (SAANS) during the treatment of mild traumatic brain injury, chronic pain, and post-traumatic stress disorder.
3 stars 1 forks source link

Guest login #28

Closed boyle closed 5 years ago

boyle commented 5 years ago

If the web server is unavailable, we still need to collect data. Issue#2 deals with the login, if the user has authenticated with the current device previously. This addresses the vast majority of start up connectivity problems.

Finally, we get down to a much reduced failure case, which we can address in some later sprint.


If the device is new, or this is a new user, we still need to collect data and deal with authentication later.

In this case, we should have a "guest" login. Data will be stored locally under the guest user id (0). Any data with user id (0) will not pushed from the local cache to the server.

Logged in users will be able to see and claim the guest data, at which point it will be re-tagged in the local file cache with that user id, and therefore be clear to transmit to the server at the next opportunity.