Mailspring/spec/stores
Evan Morikawa 0be186302a refactor(account): remove unused accont refresh methods
Summary:
This removes `refreshHealthOfAccounts`, which I originally found because I
was trying to refactor it out of the IdentityStore. We need it gone from
the IdentityStore so that store can trigger frequently as things like the
usageLimits constantly update on it.

This also fixes T7520 where we'd get `ECONNREFUSED 127.0.0.1:2578` on
launch unnecessarily.

The concept of refreshing the health of accounts by occassionally polling
the /accounts endpoint is obsolete. This depends on
D3769 which entirely removes the /accounts endpoint
from K2.

Account health is pushed to us by `Actions.updateAccount` which is fired
directly from the main local-sync sync loop.

This also removes `refreshAccounts` and `Actions.refreshAllDeltaConnections`. These were fired by the Identity Store whenever it updated. We no longer need the Identity Store to tell us to reset the delta connections with our local-sync accounts. The delta connections will either be reset by our offline notification button, or when adding or removing an account. The Identity Store was a redundant mechanisms

Test Plan:
Manually verify things work with an existing account. Add a new account
and ensure sync starts. Remove an account and ensure it gets cleaned up.

Reviewers: halla, khamidou, mark, juan

Reviewed By: juan

Maniphest Tasks: T7520

Differential Revision: https://phab.nylas.com/D3770
2017-01-25 10:12:09 -05:00
..
account-store-spec.coffee refactor(account): remove unused accont refresh methods 2017-01-25 10:12:09 -05:00
badge-store-spec.coffee es6(models): Remaining models => ES2016 2016-10-27 12:08:59 -07:00
contact-store-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
database-setup-query-builder-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
database-store-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
database-transaction-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
draft-editing-session-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
draft-factory-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
draft-helpers-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
draft-store-spec.es6 feat(send) 2017-01-04 15:42:19 -08:00
file-download-store-spec.coffee perf(sync): don't send message bodies across IPC & limit global IPC 2017-01-16 10:28:49 -08:00
file-upload-store-spec.coffee feat(send) 2017-01-04 15:42:19 -08:00
focused-contacts-store-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
focused-content-store-spec.coffee es6(*): Actions, ConfigSchema => ES2016 2016-10-27 18:48:33 -07:00
focused-perspective-store-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
message-store-spec.coffee es6(*): Actions, ConfigSchema => ES2016 2016-10-27 18:48:33 -07:00
nylas-sync-status-store-spec.es6 fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
send-actions-store-spec.es6 feat(undo-send): Add undo send 2016-10-26 20:40:10 -07:00
task-queue-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
task-subclass.es6 Revert "fix(task-queue): performLocal now operates serially" 2016-09-26 17:04:23 -07:00
undo-redo-store-spec.es6 fix(undo): can redo more than one undo item 2016-05-18 16:43:48 -07:00