Mailspring/spec/stores
Drew Regitsky f1d3959591 fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking
Summary:
Fixes an issue with sending where certain conditions could result in a
duplicated message.

Fixes task dependency logic for draft syncback and send. Changes `createdAt`
on tasks to instead be `sequentialId`, assigned when the task is queued, to
track order of enqueueing. Renames `isDependentTask` => `isDependentOnTask`
and adds comments for clarity.

Test Plan:
Specs updated. Might be good to add some later to test this particular
edge case.

Reviewers: juan, evan, bengotow

Reviewed By: evan, bengotow

Differential Revision: https://phab.nylas.com/D2681
2016-03-07 20:14:58 -08:00
..
account-store-spec.coffee fix(account-store): Correctly check alias email inside accountForAlias 2016-02-07 00:39:11 -08:00
contact-store-spec.coffee fix(contact-search): Keep only ranked contacts, query for others. Massive perf boost. 2016-01-28 14:56:15 -08:00
database-setup-query-builder-spec.coffee DatabaseTransaction / QueryBuilder spec fixes 2016-01-25 11:11:57 -08:00
database-store-spec.coffee feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00
database-transaction-spec.coffee DatabaseTransaction / QueryBuilder spec fixes 2016-01-25 11:11:57 -08:00
draft-store-proxy-spec.coffee feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00
draft-store-spec.coffee feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
file-download-store-spec.coffee fix(lint) 2016-03-04 10:28:48 -08:00
file-upload-store-spec.coffee fix(uploads): Consolidate logic, use Promisify, path.join 2016-01-29 14:45:53 -08:00
focused-contacts-store-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
focused-content-store-spec.coffee Merge branch 'master' into unified-inbox 2016-01-25 17:28:29 -08:00
focused-perspective-store-spec.coffee fix(focused-persepective): Init saved perspective correctly 2016-02-09 20:10:33 -08:00
message-store-spec.coffee fix(message-list): Spec fixes, all stubs need accountId 2016-01-28 11:14:04 -08:00
task-queue-spec.coffee fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking 2016-03-07 20:14:58 -08:00
thread-counts-store-spec.coffee Merge branch 'master' into unified-inbox 2016-01-25 17:28:29 -08:00
unread-badge-store-spec.coffee fix(badge): Badge respects option in prefs 2015-11-30 19:17:35 -08:00