Mailspring/spec/tasks
Juan Tejada 1ba3a64785 feat(metadata): Switch to storing metadata on models
Summary:
 - Adds a class ModelWithMetadata which models can now extend from
 - Instances of this class can query metadata for a plugin via
   `obj.metadataForPluginId(pluginId)`
 - To observe changes on metadata it is sufficient to observe database changes on
   the model. e.g.:
   `DatabaseStore.findAll(Thread,
   [Thread.attributes.pluginMetadata.contains(pluginId)])`
 - To set metadata a new action has been created: Actions.setMetadata
 - Adds a helper observable in nylas-observables to query for models with
   metadata
 - Merges CreateModelTask and UpdateModelTask into SyncbackModelTask
 - Update SendDraftTask ans SynbackDraftTask to handle metadata changes

Test Plan: - Unit tests

Reviewers: drew, evan, bengotow

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2575
2016-02-17 15:00:33 -08:00
..
change-folder-task-spec.coffee Fix more task specs 2016-01-22 16:55:29 -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 feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05: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-spec.coffee feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00
send-draft-spec.coffee feat(metadata): Switch to storing metadata on models 2016-02-17 15:00:33 -08:00
syncback-category-task-spec.coffee Merge branch 'master' into unified-inbox 2016-01-25 17:28:29 -08:00
syncback-draft-spec.coffee feat(metadata): Switch to storing metadata on models 2016-02-17 15:00:33 -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 fix(remove-from-view): Update remove from view (shortcut) behavior 2016-02-01 17:40:42 -08:00
task-spec.coffee feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00