mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
0217e5a509
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 |
||
---|---|---|
.. | ||
components | ||
extensions | ||
fixtures | ||
models | ||
services | ||
stores | ||
tasks | ||
action-bridge-spec.coffee | ||
auto-update-manager-spec.coffee | ||
buffered-process-spec.coffee | ||
clipboard-spec.coffee | ||
command-installer-spec.es6 | ||
component-registry-spec.coffee | ||
database-object-registry-spec.coffee | ||
dom-utils-spec.coffee | ||
extension-registry-spec.coffee | ||
jasmine-helper.coffee | ||
jasmine-jquery.js | ||
jasmine.js | ||
launch-services-spec.coffee | ||
list-selection-spec.coffee | ||
mail-rules-processor-spec.coffee | ||
mailbox-perspective-spec.coffee | ||
menu-manager-spec.coffee | ||
module-cache-spec.coffee | ||
n1-spec-reporter.coffee | ||
nylas-api-spec.coffee | ||
nylas-env-spec.coffee | ||
nylas-protocol-handler-spec.coffee | ||
nylas-test-utils.coffee | ||
package-manager-spec.coffee | ||
package-spec.coffee | ||
quoted-html-transformer-spec.coffee | ||
quoted-plain-text-transformer-spec.coffee | ||
spec-bootstrap.coffee | ||
spec-helper-platform.coffee | ||
spec-helper.coffee | ||
spec-suite.coffee | ||
spellchecker-spec.coffee | ||
style-manager-spec.coffee | ||
styles-element-spec.coffee | ||
theme-manager-spec.coffee | ||
time-override.coffee | ||
time-reporter.coffee | ||
undo-manager-spec.coffee | ||
utils-spec.coffee |