Mailspring/spec/tasks
Ben Gotow 856334c088 fix(tasks): Call super.isDependent, wrap model lookup in transaction
Summary:
ChangeFolder/ChangeLabel still need to call super.isDependentOnTask!

Formalize "retrieve latest models" part of the performLocal process, ensure that it's always /inside/ the transaction that is going to write the changes. This ensures that queueing two tasks for the same thread at the same time don't cause a race...

...condition between the two tasks (end result is currently arbitrary!)

Add "move to label" mail rule to go alongside "Add Label"

Test Plan: All broken... willfix.

Reviewers: juan, evan, jackie

Reviewed By: evan, jackie

Differential Revision: https://phab.nylas.com/D2999
2016-05-31 16:31:24 -07:00
..
base-draft-task-spec.es6 feat(babel6): fix es6 describe function syntax 2016-05-06 11:55:20 -07:00
change-folder-task-spec.coffee fix(tasks): Call super.isDependent, wrap model lookup in transaction 2016-05-31 16:31:24 -07:00
change-labels-task-spec.coffee fix(tasks): Call super.isDependent, wrap model lookup in transaction 2016-05-31 16:31:24 -07:00
change-mail-task-spec.coffee fix(tasks): Call super.isDependent, wrap model lookup in transaction 2016-05-31 16:31:24 -07:00
change-starred-task-spec.coffee feat(babel6): Convert to use new es6 require syntax 2016-05-06 11:54:55 -07:00
change-unread-task-spec.coffee feat(babel6): Convert to use new es6 require syntax 2016-05-06 11:54:55 -07:00
destroy-category-task-spec.coffee es6(tasks): Convert all remaining tasks to ES6 2016-03-21 16:50:10 -07:00
destroy-model-task-spec.es6 feat(babel6): 1,774 linter errors 2016-05-06 11:55:46 -07: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.es6 fix(build): Fix remaining specs (composer-view, send-draft-task) 2016-05-25 10:25:36 -07:00
syncback-category-task-spec.coffee
syncback-draft-files-task-spec.es6 fix(lint): Correct more linter errors 2016-05-06 14:10:28 -07:00
syncback-draft-task-spec.es6 feat(babel6): fix es6 describe function syntax 2016-05-06 11:55:20 -07:00
syncback-model-task-spec.es6 feat(babel6): fix es6 describe function syntax 2016-05-06 11:55:20 -07:00
task-spec.coffee feat(babel6): Fix errors in es6 compilation and extending from coffeescript 2016-05-06 11:55:31 -07:00