Mailspring/spec/tasks
Ben Gotow 68ab8e22c9 fix(drafts): Lock drafts when they're deleted so they can't be revived by deltas
Summary:
When we delete drafts, they can sometimes come back because we receive deltas about them,
find that they're not in the cache, and re-save them.

This diff fixes that by permanently incrementing the optimistic change count, which was also do
to prevent deltas from changing threads while we're in the middle of a request that will change
them further. (This may not actually be necessary anymore, because we'd ignore the delta anyway
due to it's out-of-date version?)

Test Plan: Run a couple new tests

Reviewers: drew, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2665
2016-03-03 12:09:16 -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
change-mail-task-spec.coffee fix(drafts): Lock drafts when they're deleted so they can't be revived by deltas 2016-03-03 12:09:16 -08:00
change-starred-task-spec.coffee
change-unread-task-spec.coffee
destroy-category-task-spec.coffee
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(drafts): Lock drafts when they're deleted so they can't be revived by deltas 2016-03-03 12:09:16 -08:00
syncback-category-task-spec.coffee
syncback-draft-task-spec.coffee fix(drafts): Lock drafts when they're deleted so they can't be revived by deltas 2016-03-03 12:09:16 -08:00
syncback-model-task-spec.es6 feat(metadata): Switch to storing metadata on models 2016-02-17 15:00:33 -08:00
task-factory-spec.coffee
task-spec.coffee