Mailspring/spec/stores
Evan Morikawa 31ae05fed2 fix(identity): remove the savePromise and optimistically update
Summary:
Fixes T7832

The _savePromise mechanism of the IdentityStore was really cumbersome and
was throwing errors on the console for people. In hindsight, this is an
unnecessary complication to a very sensitive system and a source of very
hairy async bugs.

Test Plan:
I also updated the specs to ensure that when you call saveIdentity the
promise resolves after the local cache has been updated

Reviewers: spang, halla, juan

Reviewed By: juan

Maniphest Tasks: T7832

Differential Revision: https://phab.nylas.com/D3882
2017-02-10 15:52:57 -05:00
..
account-store-spec.coffee Revert "feat(config): move config to database" 2017-02-01 18:04:58 -08: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
feature-usage-store-spec.es6 feat(usage): Add a FeatureUsageStore and move Identity to the DB 2017-02-03 15:31:31 -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
identity-store-spec.es6 fix(identity): remove the savePromise and optimistically update 2017-02-10 15:52:57 -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