Mailspring/spec-nylas/tasks
Evan Morikawa c48bb3f8f2 refactor(models): Enables 3rd party plugins to add Models & Tasks
Summary:
Adding serialzable registry

Added DatabaseObjectRegistry

rename modelReviver to deserializeObject

Consolidate deserizlie

Get rid of model methods from Utils

DatabaseRegistry change notifications

Logic to throttle database refresh requests

Fixes in nylas-exports

Silent model setup

Continue to resolving the database setup phase for non main windows.

A packages `activate` method does not actually get called until the
DatabaseStore says that it's ready. This is necessary to ensure that a
package that introduces database changes has those schema changes take
hold before the activate happens.

However, in windows like the `onboarding` window that do not depend on a
database at all, there is no setup that is run and the promise use to
never resolve thereby making the packages never activate.

In this case, any external windows will go ahead and let their packages
activate.

Check subclass instead of instance!

Use the correct types for "messages" and "drafts"

Move Salesforce models

Proper references to Model and Attributes

Convert Salesforce stores to NylasStores and fix paths

Move database setup to DB

Test Plan: todo

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D1899
2015-08-19 16:25:56 -07:00
..
change-folder-task-spec.coffee perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
change-labels-task-spec.coffee perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
change-mail-task-spec.coffee fix(labels/folders): Temporarily disable changing nested messages 2015-08-05 17:39:48 -07:00
change-starred-task-spec.coffee perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
change-unread-task-spec.coffee perf(*): Add indexes, optimize "shouldAcceptModel", optimize Tasks 2015-08-05 15:53:08 -07:00
event-rsvp-spec.coffee RSVP tile for events on messages 2015-07-28 18:21:30 -07:00
file-upload-task-spec.coffee refactor(models): Enables 3rd party plugins to add Models & Tasks 2015-08-19 16:25:56 -07:00
mark-message-read-spec.coffee feat(offline-mode, undo-redo): Tasks handle network errors better and retry, undo/redo based on tasks 2015-07-07 13:38:53 -04:00
send-draft-spec.coffee feat(draft-syncback): Sync drafts with Gmail (API does not support Exchange syncback) 2015-07-22 11:18:23 -07:00
syncback-draft-spec.coffee feat(draft-syncback): Sync drafts with Gmail (API does not support Exchange syncback) 2015-07-22 11:18:23 -07:00
task-spec.coffee feat(offline-mode, undo-redo): Tasks handle network errors better and retry, undo/redo based on tasks 2015-07-07 13:38:53 -04:00