Commit graph

4443 commits

Author SHA1 Message Date
Jackie Luo cb9802daf2 fix(tracking): Update server URLs and send MESSAGE_ID 2016-12-13 12:54:25 -08:00
Evan Morikawa d17bc76765 bump(SFDC) 2016-12-12 23:18:22 -05:00
Evan Morikawa c3f3462503 bump(SFDC) 2016-12-12 23:13:45 -05:00
Evan Morikawa 9a5e353cb3 bump(SFDC) 2016-12-12 19:02:16 -05:00
Evan Morikawa 08f9b16a74 bump(electron): 1.4.12 2016-12-12 18:24:59 -05:00
Evan Morikawa d3c94054a8 bump(SFDC) 2016-12-12 18:03:39 -05:00
Evan Morikawa 5f6a166b3a bump(SFDC) 2016-12-12 18:03:19 -05:00
Evan Morikawa 60cd5faba8 Update Changelog 2016-12-12 17:41:31 -05:00
Michael Grinich 9c0467e595 Add another awesome plugin and theme 🙌
Thanks @jodyheavener!
2016-12-12 13:50:29 -08:00
Evan Morikawa 41c893cc17 Move old edgehill src/pro into K2/packages/nylas-private
Summary:
feat(bootstrap): automatically init submodule if able

fix(bootstrap): symlink arc instead of copy

Test Plan: test

Reviewers: juan

Differential Revision: https://phab.nylas.com/D3494
2016-12-12 10:38:43 -05:00
Evan Morikawa eb7f3c90e6 feat(bootstrap): automatically init submodule if able 2016-12-12 10:22:40 -05:00
Evan Morikawa 2650613ef1 Move old edgehill src/pro into K2/packages/nylas-private 2016-12-12 10:10:26 -05:00
Evan Morikawa f1befc7f3e fix(SFDC): properly enable SFDC 2016-12-09 15:22:14 -08:00
Evan Morikawa a702ce9e93 bump(version): 0.4.402 2016-12-09 12:03:15 -08:00
Evan Morikawa 8bd1ff180d fix(lint) 2016-12-09 12:02:39 -08:00
Evan Morikawa 9cf05c780e bump(k2) 2016-12-09 11:15:38 -08:00
Evan Morikawa 6bdbcbadc7 bump(k2) 2016-12-09 11:13:23 -08:00
Evan Morikawa 10f62a0607 bump(SFDC) 2016-12-08 18:26:40 -08:00
Evan Morikawa f169df496d feat(form): better form headers 2016-12-08 18:19:53 -08:00
Jackie Luo 2b36b6dfd5 feat(message-ids): Hash message IDs and replace in draft before sending 2016-12-08 17:50:48 -08:00
Evan Morikawa 7b7e34e819 feat(SFDC): enable SFDC on by default 2016-12-08 17:23:14 -08:00
Evan Morikawa 5bd7092199 feat(links): forward name and message in links 2016-12-08 17:19:21 -08:00
Evan Morikawa c16dd3784a fix(build): fix osx sign, fail on error, remove unnecessary k2 2016-12-08 14:18:44 -08:00
Jackie Luo 7499a06c28 feat(tracking): Add routes for open and link tracking 2016-12-08 13:42:47 -08:00
Evan Morikawa 19560f1e99 fix(SFDC): fix bug where opening new file would cause attachments to fail 2016-12-08 11:11:39 -08:00
Evan Morikawa 6a828a099f fix(SFDC): fix bug where opening new file would cause attachments to fail 2016-12-08 11:11:01 -08:00
Juan Tejada 4e40c0c55d bump submodule 2016-12-08 10:28:46 -08:00
Evan Morikawa 2bd3a29f6b bump(k2) 2016-12-07 17:50:09 -08:00
Halla Moore 25652fea60 bump(submodules) 2016-12-07 17:14:14 -08:00
Halla Moore 372f0ee987 bump(src/pro) 2016-12-07 16:50:04 -08:00
Juan Tejada 548fc7b1ba bump submodule 2016-12-07 16:16:59 -08:00
Juan Tejada 6f44630f96 fix(tasks): Add syncback-task-api-request to keep track of K2 tasks
This commit adds a new request type: SyncbackTaskAPIRequest.
This API request is meant to be used for requests that create a
SyncbackRequest inside K2.
When the initial http request succeeds, this means that the task was created,
but we cant tell if the task actually succeeded or failed until some time in
the future when its processed inside K2's sync loop.

A SyncbackTaskAPIRequest will only resolve until the underlying K2 syncback
request has actually succeeded, or reject when it fails, by listening to
deltas for ProviderSyncbackRequests

THis commit also updates N1's tasks that create syncback requests to use
this new type of request
2016-12-07 16:13:36 -08:00
Ben Gotow 19c91829a4 nit(db): Be more defensive, try to find tx issue 2016-12-07 14:40:30 -08:00
Halla Moore 1f36388b93 update(send): Pass in the upload data that local-sync expects
Since local-sync can access the same targetPaths as N1, there's
no need to create actual File instances anymore. Pass just the
upload data in the API request, and remove SyncbackDraftFilesTask
since it is no longer necessary.
2016-12-07 14:19:07 -08:00
Evan Morikawa 40e5726db0 bump(SFDC) 2016-12-07 11:57:44 -08:00
Evan Morikawa 476bbb0e5f feat(auth): add better error state handling 2016-12-07 10:11:22 -08:00
Christine Spang ee3e77c6c3 bump(k2) 2016-12-07 07:26:18 -08:00
Christine Spang 988c6022da feat(k2): Wrap lines on preformatted text
Summary:
We now use <pre> tags to preserve whitespace in plaintext emails,
but it's annoying when there are long lines that force a scroll
bar. Wrap them instead.

Test Plan:
looked at some emails. Not sure this isn't going to break something
           weird---is <pre> used in anything else?

Reviewers: bengotow

Differential Revision: https://phab.nylas.com/D3484
2016-12-06 17:47:51 -08:00
Evan Morikawa f170d14b8d fix(errors): properly rethrow api error 2016-12-06 17:21:37 -08:00
Jackie Luo 0e388d5c8c rm(send-successful): Remove NotifyPluginsOfSendTask 2016-12-06 16:45:32 -08:00
Jackie Luo 8026d1e1a5 fix(spelling): Correct references 2016-12-06 16:05:05 -08:00
Evan Morikawa 4593e770cd refactor(build): update build to install with right env for k2 packages 2016-12-06 16:03:44 -08:00
Evan Morikawa e595590a9a refactor(auth): DRY auth 2016-12-06 16:03:42 -08:00
Juan Tejada eb1c7aadf5 bump submodule 2016-12-06 15:54:58 -08:00
Juan Tejada d08da72ae2 fix(k2) Ensure order correct order when running syncback requests
When running syncback requests, if a task is meant to change the UID of
a message (e.g. move it to a new folder), that task should be run after
other tasks that don't affect the UID. Otherwise, when trying to run the
other tasks, they would reference a UID that is no longer valid.

This commit will make sure that we run any tasks that will change message uids last,
/and/ make sure that we don't run more than 1 task that will affect the uids of
the same messages in a row (i.e. without running a sync loop in between)
2016-12-06 15:45:46 -08:00
Juan Tejada 68e596bdf4 [local-sync] Correctly sync folders and labels
This commit will correctly keep track of folder and label ids when
creating them from N1.

Previously, when we sent the request to create a folder or label to our api,
we would immediately get back a serverId because it was created optimistically
in the back end— given that K2 is strictly non-optimistic, we won’t have a serverId
until some undetermined time in the future, and we need to somehow reference
the object that /was/ optimistically created in N1 to update the ui when
we do get the server id.

Since we can deterministically generate ids for folders and labels,
we "guess" what its going to be, and include it in the props of the syncback request
returned to N1. This is the simplest solution to get thing working
correctly right now, but we’ll need to revisit this in the future for
other types of objects (drafts, contacts, events), and revisit how we
will manage optimistic updates in N1 when we merge the 2 codebases
with K2 (given that K2 was designed to be non-optimisitc).
2016-12-05 18:57:13 -08:00
Evan Morikawa 3e54c37edb bump(k2) 2016-12-05 17:30:56 -08:00
Evan Morikawa d624f6657a fix(key): only migrate if key doesn't exist 2016-12-05 17:28:37 -08:00
Evan Morikawa ace9b94053 feat(key): use unified key manager 2016-12-05 17:19:19 -08:00
Christine Spang a04dca2755 add watchman config file for fast fuzzy find 2016-12-05 16:23:48 -08:00