Mailspring/internal_packages
Ben Gotow 18677e51a6 fix(config): Store cursors with sync state, avoid constant config.cson writes
Summary:
Previously we were storing sync cursors in config.cson. They were by
far the most frequently updated piece of data in config. To make things worse,
all the writing was happening in the worker window - the main window was just
seeing the changes on disk and reloading.

I believe there's an edge case which causes the main window to read the config
file when it's mid-write and empty. This causes the accounts array to become
empty in the AccountStore and lots of downstream issues. It's also then possible
for the main window to write a config change of it's own and empty the file
permanently.

Test Plan: A few new tests to make sure this is backwards compatible.

Reviewers: juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D2642
2016-02-26 13:52:19 -08:00
..
account-sidebar fix(snooze): look at allCategories instead of userCategories 2016-02-24 16:51:34 -08:00
attachments 🎨: Smaller buttons, smaller toolbar, smaller text 2016-02-09 19:45:24 -08:00
category-picker fix(snooze): Hide N1-Snoozed from the category picker 2016-02-25 13:32:58 -08:00
composer fix(composer): focus on the absolute end when clicking near the bottom 2016-02-25 13:31:34 -08:00
composer-emojis fix(composer-emojis): Adjust width for overflower 2016-02-24 20:41:54 -08:00
composer-signature fix(signature): Update signature when account is changed in composer 2016-02-24 00:19:55 -08:00
composer-spellcheck fix(electron): Update api usage to require('electron') 2016-01-29 14:24:33 -08:00
composer-templates fix(build): Don't delete plugin package.json files, restore ellipsis (@sdw consulted HIG!) 2016-02-24 18:15:55 -08:00
composer-translate sp(translate): Transalate => Translate 2016-02-25 11:05:07 -08:00
events Merge branch 'master' into unified-inbox 2016-01-12 08:20:55 -08:00
github-contact-card 💄(icon): A delightful seafoam green icon 2016-02-23 10:35:08 -08:00
link-tracking fix(link/open tracking): Update error messages 2016-02-25 13:32:59 -08:00
message-autoload-images fix(config): observe fires immediately, causing re-renders 2016-01-29 00:31:10 -08:00
message-list fix(message-controls): update email address for reporting 2016-02-26 12:29:11 -08:00
message-view-on-github 💄(icon): A delightful seafoam green icon 2016-02-23 10:35:08 -08:00
mode-switch 💄: White buttons, dropdown / popover cleanup, hairline dividers 2016-02-18 15:21:42 -08:00
notification-mailto fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notification-update-available fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notifications Merge branch 'master' into unified-inbox 2016-01-12 08:20:55 -08:00
onboarding Re-add SSL checkboxes with name ssl_required 2016-02-25 14:38:49 -08:00
open-tracking fix(link/open tracking): Update error messages 2016-02-25 13:32:59 -08:00
personal-level-indicators 💄(icon): A delightful seafoam green icon 2016-02-23 10:35:08 -08:00
phishing-detection 💄(icon): A delightful seafoam green icon 2016-02-23 10:35:08 -08:00
plugins fix(plugin): better errors if plugins are malformed 2016-02-25 11:55:11 -08:00
preferences fix(lint) 2016-02-26 11:24:00 -08:00
print fix(print): Add print button to preview, don't print immediately (Fixes #1352) 2016-02-19 19:07:22 -08:00
quick-schedule fix(error-handling): handle offline for link tracking & read-receipts 2016-02-24 16:06:08 -08:00
screenshot-mode feat(screenshot-mode): Minor fix to unmount method 2016-01-29 16:59:51 -08:00
search-bar 💄(search): Fix clear button positioning 2016-02-22 10:14:34 -08:00
send-and-archive fix(send-and-archive): Was disabling signatures due to name collision 2016-02-01 17:33:18 -08:00
send-later fix(analytics): fix send later and snooze analytics 2016-02-25 14:01:15 -08:00
sidebar-fullcontact feat(transactions): Explicit (and faster) database transactions 2015-12-17 11:46:05 -08:00
system-tray lint(system-tray): code style consistent with rest of file 2016-02-26 11:37:20 -05:00
thread-list bump(version): 0.4.9 and changelog 2016-02-25 14:10:21 -08:00
thread-snooze fix(snooze): Do not display snooze buttons unless looking at inbox 2016-02-25 14:02:58 -08:00
ui-dark 💄 Minor visual tweaks to win32 + dark mode 2016-02-22 13:30:12 -08:00
ui-light feat(theme-selector): Add theme selector to preferences page 2015-12-15 10:29:58 -08:00
undo-redo fix(undo): Ensure undo bar dismisses after re-appearing 2016-02-05 19:11:27 -08:00
unread-notifications Revert "fix(sidebar): Correctly update sidebar when a notif is selected" 2016-02-02 10:58:24 -08:00
worker-sync fix(config): Store cursors with sync state, avoid constant config.cson writes 2016-02-26 13:52:19 -08:00
worker-ui fix(feedback): Remove feedback btn, update "N1 Help" in menu bar 2016-02-24 13:49:15 -08:00