Dan Stillman
4ac2da42d1
Zotero.Items.getAsync() -> get() in itemTreeView::notify()
2016-05-05 02:16:09 -04:00
Dan Stillman
3ab335a078
Don't clear search field when updating items list during sync
...
Fixes #985
2016-05-05 02:16:08 -04:00
Dan Stillman
8c98abe9dc
Fix #988 , 5.0: Tab skips Abstract and Extra fields
2016-05-04 21:10:08 -04:00
Dan Stillman
cd5e805b9e
Sync logic improvements
...
- Cancel sync when cancelling conflict resolution window
- Don't try to upload unsynced objects if present in sync queue
2016-05-04 01:39:24 -04:00
Dan Stillman
391f525a75
Close #975 , Process conflicts for all batches together
2016-05-03 23:18:42 -04:00
Dan Stillman
f8a0f9ad1d
Use synchronous object getters during sync
...
Since objects should always already be loaded
2016-05-03 18:27:08 -04:00
Dan Stillman
f751495ce8
Remove debug output hover over sync icon
2016-05-03 18:27:08 -04:00
Philipp Zumstein
aef8453924
Fix some for each ... in cases ( #978 )
2016-05-03 17:51:12 -04:00
Dan Stillman
096ebb188b
Try to log a better error for some instances of Zotero.debug(e);
2016-05-03 13:47:37 -04:00
Dan Stillman
72c8711cd3
String::contains() -> indexOf() for Firefox 48 (and 38) compatibility
...
.contains() was removed in Firefox 48, but .includes() wasn't available until
40, so use indexOf() for now. We can start using .contains() once we no longer
need to support 38 ESR.
2016-05-03 12:08:38 -04:00
Dan Stillman
315100e5ef
Remove obsolete style code
2016-05-03 12:06:29 -04:00
Dan Stillman
e8aec31715
Fix various cases of sync errors with read-only libraries
...
Addresses #983
2016-05-03 02:55:26 -04:00
Dan Stillman
f844d9e46d
Skip full-text content download if main library version hasn't changed
...
Since a data sync always happens first, the main library version will
always be higher if there's any full-text content to download.
2016-05-03 01:17:53 -04:00
Dan Stillman
e0e744f9b1
Use multi-item requests for full-text writes
...
This is necessary to get a library version after the write instead of an
item version. Otherwise after a full-text write, the main library
version is behind, so the next sync checks all object types for that
library instead of getting a 304.
Full text is batched up to 500K characters or 10 items, whichever is
less.
This also switches to using ?format=versions for /fulltext requests,
which isn't currently necessary but reflects what it's actually doing.
2016-05-03 01:17:52 -04:00
Dan Stillman
a0c7cf9bee
Remove redundant error handling in Z.Sync.Data.Engine::_uploadObjects()
...
makeRequest() now retries 5xx errors automatically, so it's not
necessary higher up.
2016-05-02 05:53:07 -04:00
Dan Stillman
4cc6408105
Use object destructuring in Zotero.Sync.Data.Engine::_uploadObjects()
2016-05-02 05:52:42 -04:00
Dan Stillman
862b371b49
Refactor some API response handling code
2016-05-02 01:28:37 -04:00
Dan Stillman
14ce455483
Fix #982 , 5.0: File dots not showing up for child attachments
2016-04-30 19:18:59 -04:00
Dan Stillman
6afce0cf22
Fix "treeRow is undefined" error dragging to bottom of collections list
...
If you drag past the collections list the row is -1.
Fixes #958
2016-04-30 17:15:13 -04:00
Dan Stillman
10181f7f56
Fix sync error on missing full-text
...
If a version is returned for an item's full-text content but a 404 is returned
for the content itself (because it's missing in Elasticsearch for some reason),
don't throw an error.
Also remove legacy array comprehensions in fulltext and syncFullTextEngine test
files, which apparently weren't being run.
2016-04-30 01:24:33 -04:00
Dan Stillman
750d691712
Throw errors instead of strings in FeedReader rejections
2016-04-29 23:32:49 -04:00
Dan Stillman
b4a9858f37
Log message for unhandled promise rejection when string is thrown
2016-04-29 23:32:31 -04:00
Dan Stillman
13c4bbebfa
Save master item when merging
2016-04-29 20:29:44 -04:00
Dan Stillman
877063e73d
Merge branch '4.0'
2016-04-29 20:29:31 -04:00
Dan Stillman
b4ac43fd77
Fix startup error on Firefox 48
...
Addresses #980 . There are a couple other uses of the old API, but I'm not sure
how they're triggered, and we might be gone from Firefox before this is
relevant.
2016-04-29 17:28:24 -04:00
Dan Stillman
ef71d3f729
Revert "Try disabling gzip compression of uploads, in case it fixes sync error"
...
This reverts commit adec007df0
.
Doesn't seem to make a difference.
2016-04-29 11:57:11 -04:00
Dan Stillman
adec007df0
Try disabling gzip compression of uploads, in case it fixes sync error
...
Just to see if it fixes the "Error connecting to server" errors some people are
seeing after upgrading to Firefox 46.
2016-04-29 00:38:19 -04:00
Dan Stillman
3663f13fa9
Merge pull request #979 from adomasven/fix/old-sync-credentials-to-apikey
...
Fixes sync error when transfering credentials from legacy to API key
2016-04-28 10:23:59 -04:00
Adomas Venčkauskas
477a1fb5bc
Fixes sync error when transfering credentials from legacy to API key
2016-04-28 15:18:09 +01:00
Dan Stillman
186561f320
Merge pull request #950 from adomasven/feature/import-feeds-from-opml
...
Close adomasven/zotero#11 . Add support for feed imports from OPML files
2016-04-28 01:09:47 -04:00
Dan Stillman
f52e93dd16
Fix intermittent test failures saving from loaded RIS file
...
1c19fe8d81
isn't sufficient for local files, because detection is run
twice, so a translator may not be available when the detect callback is
run. This changes the test to poll for the translate icon, which is a
bit of a hack but does the job.
Unfortunately this isn't perfect either, because it seems the RIS
detection sometimes just isn't run, which means that the icon never
changes and the test times out. Maybe @simonster has an idea why that's
happening.
2016-04-27 16:07:17 -04:00
Dan Stillman
5a4dddcbc6
Download to Bluebird 3.3.4 to fix translation error
...
browserTest.js -> "should save book with child note to current
collection" was failing with an attempt to translate as COinS instead of
RIS. If this isn't fixed in a subsequent Bluebird release, we can debug
further.
2016-04-27 16:06:58 -04:00
Adomas Venčkauskas
3b758e562b
Close adomasven/zotero#11 . Add support for feed imports from OPML files
2016-04-27 20:32:20 +01:00
Dan Stillman
bb522868ad
Merge pull request #977 from adomasven/fix/feed-remove-after-setting
...
Closes #961 . Fixes feed dialogue remove read articles value not saving
2016-04-27 13:29:36 -04:00
Dan Stillman
ecd65b3b75
Merge pull request #976 from adomasven/fix/feed-update-cache-bypass
...
Closes #951 . Bypasses cache when retrieving feeds
2016-04-27 13:16:27 -04:00
Adomas Venčkauskas
98a3c4aeaa
Closes #961 . Fixes feed dialogue remove read articles value not saving
2016-04-27 16:38:28 +01:00
Adomas Venčkauskas
1892f7b5b0
Closes #951 . Bypasses cache when retrieving feeds
2016-04-27 15:27:09 +01:00
Dan Stillman
295e9f3ecf
Don't retry cancelled conflicts immediately
...
If other items were saved in the same batch, the conflict resolution
window could reappear immediately after cancelling it.
2016-04-27 05:45:35 -04:00
Dan Stillman
c146adce38
Hide sync error panel after custom button is clicked
2016-04-27 03:15:29 -04:00
Dan Stillman
e5bf7eff21
Open account settings in new tab from quota message
2016-04-27 03:15:10 -04:00
Dan Stillman
6d6afdd706
Show correct quota message for personal library
2016-04-27 03:14:51 -04:00
Dan Stillman
0ebf49849a
Log counts of storage requests that succeeded and failed
2016-04-27 02:35:24 -04:00
Dan Stillman
1a97f27fe3
Use Bluebird reflect() instead of deprecated settle()
2016-04-27 02:34:46 -04:00
Dan Stillman
05de47149f
Allow marking of errors as handled for Bluebird
...
Set .handledRejection on an Error object to tell Bluebird that it's been
handled and shouldn't be logged by onPossiblyUnhandledRejection().
2016-04-27 02:32:58 -04:00
Dan Stillman
1502985d98
Update Bluebird to 3.3.5
2016-04-27 02:23:49 -04:00
Dan Stillman
2a8cd27b49
Increase default test timeout to 10000
2016-04-26 21:46:05 -04:00
Dan Stillman
88a1827332
Fix test failures
2016-04-26 21:45:55 -04:00
Dan Stillman
1c90a77298
Fix handling of 413 for over-quota errors
...
And fix handling of custom error dialog button text/callbacks in
general.
2016-04-26 18:59:23 -04:00
Dan Stillman
098655d913
Prompt about username change at sync time, not just in prefs
...
This is necessary because you can copy a database synced with a
different account into the data directory without affecting the stored
pref.
Also tweak the text to use proper quotes and remove quaint references to
"the server".
2016-04-26 18:12:20 -04:00
Dan Stillman
758af2be9e
Align "Set Up Syncing" button in prefs
2016-04-26 16:27:26 -04:00