mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
1ba3a64785
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 |
||
---|---|---|
.. | ||
change-folder-task-spec.coffee | ||
change-labels-task-spec.coffee | ||
change-mail-task-spec.coffee | ||
change-starred-task-spec.coffee | ||
change-unread-task-spec.coffee | ||
destroy-category-task-spec.coffee | ||
destroy-model-task-spec.es6 | ||
event-rsvp-spec.coffee | ||
send-draft-spec.coffee | ||
syncback-category-task-spec.coffee | ||
syncback-draft-spec.coffee | ||
syncback-model-task-spec.es6 | ||
task-factory-spec.coffee | ||
task-spec.coffee |