Commit Graph

440 Commits

Author SHA1 Message Date
James Houlahan
df3a9ea19e test: add comment for why tests are disabled 2020-05-04 07:37:51 +00:00
James Houlahan
2db1b113e0 fix: correct timeouts according to spec 2020-05-04 07:37:51 +00:00
James Houlahan
68d2591c73 test: fix tls tests 2020-05-04 07:37:51 +00:00
James Houlahan
e9735c6110 refactor: set app version when enabling remote tls issue reporting 2020-05-04 07:37:51 +00:00
James Houlahan
0fd5ca3a24 feat: dialer refactor to support modular dialing/checking/proxying 2020-05-04 07:37:51 +00:00
James Houlahan
23f492705b fix: better draft detection for parentID 2020-04-30 09:20:03 +00:00
Jakub Cuth
b15d22c8cc Reduce number of synchronizations GODT-313
* [x] expononential cooldown of retries
* [x] do not trigger sync by counts
* [x] randomization of event poll interval
2020-04-28 14:20:37 +00:00
James Houlahan
522cadb8b1 refactor: dedicated constants package, no explicit bridge version 2020-04-28 12:39:05 +00:00
James Houlahan
7d30459417 test: empty auth update channel in tests 2020-04-28 12:21:54 +00:00
James Houlahan
8f15041d8f fix: race condition when updating user auth 2020-04-28 12:21:54 +00:00
Jakub
51846efed5 Merge branch 'release/v1.2.7' into devel 2020-04-27 15:54:02 +02:00
James Houlahan
76b480298a fix: better error messages for 422 2020-04-23 08:34:38 +00:00
James Houlahan
1457005f86 fix: address review comments 2020-04-21 13:29:26 +02:00
James Houlahan
d4482994ec fix: missing and incorrect comments 2020-04-21 08:36:39 +00:00
James Houlahan
99635cd56d feat: max retries of 5 for client logout 2020-04-21 08:36:39 +00:00
James Houlahan
38f0425670 refactor: make sentry report its own package 2020-04-21 08:36:39 +00:00
James Houlahan
4809d97cb1 feat: clientmanager has checkconnection 2020-04-21 08:36:39 +00:00
James Houlahan
3f32fd95e0 feat: refresh expired access tokens in one goroutine 2020-04-21 08:36:39 +00:00
James Houlahan
40e96b9d1e feat: retry client auth delete while api is unreachable 2020-04-21 08:36:39 +00:00
Jakub
80f4e1e346 Fixing unit tests for client manager.
* [x] pmapi: refresh auth uid won't change
* [x] bridge tests:
    * update mocks
    * delete auth when FinishLogin fails
    * check for mailbox password
    * add `gomock.InOrder` for better test control
* [x] fix linter issues except TODOs
* [x] make rootScheme unexported
* [x] store tests: update mocks
2020-04-21 08:36:39 +00:00
James Houlahan
debd374d75 fix: don't delete uid of anonymous clients 2020-04-21 08:36:39 +00:00
James Houlahan
ed8595fa5b test: some work on integration tests (fake) 2020-04-21 08:36:39 +00:00
James Houlahan
bafd4e714e refactor: remove unnecessary getters 2020-04-21 08:36:39 +00:00
James Houlahan
d787d8b223 fix: use clientsLocker mutex 2020-04-21 08:36:39 +00:00
James Houlahan
abca7284dd refactor: make getHost and getScheme private 2020-04-21 08:36:39 +00:00
James Houlahan
db02eb694d refactor: no more pmapifactory 2020-04-21 08:36:39 +00:00
James Houlahan
5bf4d9c6f5 refactor: prefer anonymous clients 2020-04-21 08:36:39 +00:00
James Houlahan
b01be382fc refactor: GetBridgeAuthChannel --> GetAuthUpdateChannel 2020-04-21 08:36:38 +00:00
James Houlahan
042c340881 feat: make store use ClientManager 2020-04-21 08:36:38 +00:00
James Houlahan
f269be4291 refactor: make pmapi.Client the interface 2020-04-21 08:36:38 +00:00
James Houlahan
6e38a65bd8 feat: improve login flow 2020-04-21 08:36:38 +00:00
James Houlahan
941e09079c feat: implement token expiration watcher 2020-04-21 08:36:38 +00:00
James Houlahan
ce29d4d74e feat: switch to proxy when need be 2020-04-21 08:36:38 +00:00
James Houlahan
f239e8f3bf feat: central auth channel for clients 2020-04-21 08:36:38 +00:00
James Houlahan
0a55fac29a feat: simple client manager 2020-04-21 08:36:38 +00:00
James Houlahan
8f8fbc745d fix: correctly install tls certs with osascript 2020-04-17 16:51:32 +02:00
James Houlahan
c6f32192b9 refactor: return ErrNoSuchAPIID any time we get 422 2020-04-17 12:12:44 +02:00
James Houlahan
341a6501e6 fix: don't return error when event data is nil 2020-04-17 09:19:39 +00:00
James Houlahan
e1ecc11f38 feat: add ErrNoSuchMessage to pmapi 2020-04-17 09:19:39 +00:00
Jakub
17f4d6097a We build too many walls and not enough bridges 2020-04-08 12:59:16 +02:00