Commit Graph
10 Commits
Author SHA1 Message Date
Karishma Chadha db57175a90 Connect to cloud if project has cloud data. Disconnect if it doesn't.
Queue up messages to send ot the cloud server which accumulate before 
the connection is ready. Add tests for new/updated functionality.
2018-11-28 17:07:34 -05:00
Karishma Chadha 9fe4bc50e7 Add unit tests for new renameVariable and deleteVariable APIs. 2018-11-20 15:09:40 -05:00
Karishma Chadha 162d61ae70 Merge pull request #3821 from kchadha/cloud-bugfixes
Cloud bugfixes
2018-11-20 13:44:55 -05:00
Paul Kaplan a6e4f1f436 Make sure to always wait at least 1 interval before reconnecting. 2018-11-19 12:29:47 -05:00
Paul Kaplan 2b92ff4e06 Be more careful about when connection attempt is incremented 2018-11-19 11:57:27 -05:00
Paul Kaplan 10b611ad8f Keep track of and log the real connection attempt number and update test 2018-11-19 10:17:45 -05:00
Karishma Chadha eab9b74ff7 Fix issue where regular cloud variable messages were throwing uncaught Json parse errors because of a newline being at the end of the message. Add test that fails without the bugfix. 2018-11-16 18:15:04 -05:00
Paul Kaplan ca48afadb9 Add exponential backoff for cloud provider.
Uses randomized duration between [0, 2^k-1] where k is the connection attempt number, maxed out at 5.

I had to rework the tests quite a bit to make this easy to test, to work around the timeouts and the randomization.
2018-11-16 15:29:38 -05:00
Paul Kaplan f98831e311 Support multiple commands from cloud data server 2018-11-15 16:49:15 -05:00
Paul Kaplan e453fe2c00 Fix problem with updating cloud vars to zero.
Added a unit test and covered the other case (not used) where you might be trying to update the index zero of a list
2018-11-05 15:17:40 -05:00