Mailspring/spec/tasks
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
..
change-folder-task-spec.coffee fix(hidden-messages): Address diff feedback from @jstejada 2016-03-02 10:28:32 -08:00
change-labels-task-spec.coffee fix(labels): Re-order so adding/removing same label does nothing 2016-02-05 12:00:58 -08:00
change-mail-task-spec.coffee fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking 2016-03-07 20:14:58 -08:00
change-starred-task-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
change-unread-task-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
destroy-category-task-spec.coffee fix(delete-category): Resolve regression in error message (#1244) 2016-02-08 17:42:48 -08:00
destroy-model-task-spec.es6 feat(metadata): Switch to storing metadata on models 2016-02-17 15:00:33 -08:00
event-rsvp-task-spec.coffee rename(specs): A few more task renames 2016-03-01 17:34:36 -08:00
send-draft-task-spec.coffee fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking 2016-03-07 20:14:58 -08:00
syncback-category-task-spec.coffee Merge branch 'master' into unified-inbox 2016-01-25 17:28:29 -08:00
syncback-draft-task-spec.coffee fix(send): make send/syncback draft tasks cooperate, fix task ordering tracking 2016-03-07 20:14:58 -08:00
syncback-model-task-spec.es6 feat(metadata): Switch to storing metadata on models 2016-02-17 15:00:33 -08:00
task-spec.coffee feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00