Dan Stillman
0d1d4ee5cb
Don't change selection unnecessarily when creating trashed item
2015-06-23 16:56:10 -04:00
Dan Stillman
27f6f018d3
Remove Zotero.suppressUIUpdates
...
Now handled by notifier flags
2015-06-23 16:31:40 -04:00
Dan Stillman
12bea4b7ea
Notifier observer time logging
2015-06-23 16:03:05 -04:00
Dan Stillman
3ff1ff88a9
A couple search query optimizations
...
...which make very little difference, but they look better in the SQLite
query plan view.
2015-06-23 15:07:57 -04:00
Dan Stillman
33dedd1753
Tags overhaul [DB reupgrade]
...
- Simplified schema
- Tags are now added without reloading entire tag selector
- On my system, adding 400 tags to an item (separately, with the tag
selector updating each time) went from 59 seconds to 42. (Given that
it takes only 13 seconds with the tag selector closed, though,
there's clearly more work to be done.)
- Tag selector now uses HTML flexbox (in identical fashion, for now, but
with the possibility of fancier changes later, and with streamlined
logic thanks to the flexbox 'order' property)
- Various async fixes
- Tests
2015-06-23 05:21:58 -04:00
Dan Stillman
b602cc4bd2
waitForWindow()/waitForDialog() test function tweaks
...
- Give any window onload functions time to run before running
waitForWindow()
- Allow custom dialog URI in waitForDialog
2015-06-23 05:20:50 -04:00
Dan Stillman
3f475f25b6
Include remotely added properties in relations diffs
2015-06-19 04:07:46 -04:00
Dan Stillman
2e76fd6584
Add Zotero.DataObjectUtilities.getTypes()
2015-06-19 04:04:56 -04:00
Dan Stillman
7ba54886a6
Add toJSON() for searches and make Collection::toJSON() async
2015-06-19 04:04:33 -04:00
Dan Stillman
79733c75f1
Throw error in Item::fromJSON() if itemType not provided and not set
2015-06-17 01:57:57 -04:00
Dan Stillman
e45aabd03c
Special handling of objects class for SyncedSettings
...
(Though maybe it should just be renamed Zotero.Settings, since
non-synced settings aren't used much and are just handled via DB
queries.)
2015-06-17 01:57:42 -04:00
Dan Stillman
78d62b5c7c
'@params' -> '@param' in comment
2015-06-17 01:57:41 -04:00
Dan Stillman
b491ea6516
Additional async updates to colored tag handling
2015-06-17 01:57:32 -04:00
Dan Stillman
b3067ac5c0
Add skipDeleteLog option when erasing objects
...
To be used by updated deletion listener in new sync code
Also adds explicit Zotero.SyncedSettings.clear() in place of
Zotero.SyncSettings.set() without a value
2015-06-17 01:57:31 -04:00
Dan Stillman
0d59bde186
Clean up DataObject erasing, and fix search unloading
2015-06-16 19:51:21 -04:00
Dan Stillman
4f155e3432
Fix group.fromJSON() with no 'admins' or 'members' arrays
2015-06-16 19:51:21 -04:00
Dan Stillman
79f0e4761f
Handle delays for all non-cancel buttons in waitForDialog() in tests
...
When the button delay is enabled, all buttons other than Cancel are
delayed.
2015-06-16 19:51:21 -04:00
Simon Kornblith
2f7d2c09f0
Extend timeout for import test
2015-06-12 17:08:30 -04:00
Simon Kornblith
5cbb8de96b
Re-enable import progress indicator
2015-06-12 17:06:07 -04:00
Simon Kornblith
6db380b132
Fix importing files and add a basic test
...
Still need to make the progress indicator work again. Also there may be
some performance to be gained by pooling item saves into a transaction
if one is already open.
2015-06-12 16:58:57 -04:00
Dan Stillman
526c5f8112
Don't break Dan Cohen's library
...
(Though if you think about it, all of our publications may indeed become
Dan Cohen's eventually.)
2015-06-12 03:30:08 -04:00
Dan Stillman
f7216298b4
Update character set handling
...
Restore prepopulated charset table, but this time with just the
encodings from the WHATWG Encoding Standard. Assigning a charset to
Zotero.Item::attachmentCharset runs the value through
Zotero.CharacterSets.toCanonical() automatically.
This migrates attachment charsets to the new canonical values, clearing any
that are unsupported.
Other legacy mappings could still be added back, as disussed in #760 .
2015-06-12 02:46:02 -04:00
Dan Stillman
4bc5479b19
Merge pull request #760 from aurimasv/charsets
...
Add toCanonical and toLabel for Zotero.CharacterSets
2015-06-11 22:06:53 -04:00
Aurimas Vinckevicius
16ab576a1c
Add toCanonical and toLabel for Zotero.CharacterSets
2015-06-11 17:17:28 -05:00
Dan Stillman
213325636d
Disable automatic backups during test runs
2015-06-11 16:06:32 -04:00
Dan Stillman
c407675d6a
Fix more Travis timeouts, hopefully
2015-06-11 16:06:00 -04:00
Dan Stillman
037bc07a3c
Fix timeout on Travis loading 'allTypesAndFields' data
2015-06-11 02:19:49 -04:00
Dan Stillman
f8684cc9d8
Fix tag purging and Zotero.Tags.getName()
2015-06-09 16:47:04 -04:00
Dan Stillman
ac440b2b38
Don't reload collections list when sources are modified
...
Just update the row that changed, moving it if necessary.
2015-06-09 16:47:04 -04:00
Dan Stillman
1d45c6c882
Reselect the same row when an item is removed
2015-06-09 03:27:45 -04:00
Dan Stillman
1a3ef8ab7f
Add comment in resetDB() test
2015-06-08 04:29:16 -04:00
Dan Stillman
33c19715a8
Avoid error when dragging over header row
2015-06-08 04:29:16 -04:00
Dan Stillman
9a45fa94bd
Move transaction wait debug output to level 6, and strip Bluebird lines
...
This output is basically only useful when something hangs, so it can
stay off all other times.
For now, 6 can be the new only-use-when-something-is-actively-broken
level. At some point we may want to move DB activity to 4 and make this
sort of thing 5, because we don't have much that's 4 right now.
2015-06-08 04:14:47 -04:00
Dan Stillman
2d6143dce1
Clean up notifier debug output
2015-06-08 04:14:46 -04:00
Dan Stillman
2eed12abeb
'collectionsView' -> 'cv' in collectionTreeView tests
2015-06-08 04:14:46 -04:00
Dan Stillman
f93e6706fa
Don't refresh collections view when removing groups
...
Remove rows one by one
2015-06-08 04:14:46 -04:00
Dan Stillman
b43a735b93
Include libraryID in group.erase() notifier data
2015-06-08 04:05:47 -04:00
Dan Stillman
ec89a98f9d
Add group.eraseTx()
2015-06-08 04:05:47 -04:00
Dan Stillman
cd2898ece3
Update Bluebird to v2.9.27
2015-06-08 04:05:46 -04:00
Simon Kornblith
900a957318
Put a Z at the end of the accessDates in generateAllTypesAndFieldsData
...
Doesn't actually make a difference to the tests, but it's more correct
2015-06-07 18:52:31 -04:00
Simon Kornblith
70f021f945
Use ISO 8601 accessDates everywhere
...
This uses ISO 8601 dates for generateAllTypesAndFieldsData (and
changes populateDBWithSampleData to use Item#fromJSON), and makes
translators expect ISO 8601 accessDates, although SQL accessDates are
still supported with a deprecation warning. Canonicalization happens in
Zotero.Translate, so I need to remember to update connectors as well.
2015-06-07 18:50:57 -04:00
Dan Stillman
8448203583
Expect ISO 8601 access dates in Zotero.Item::fromJSON()
...
This causes translator tests to fail, because the sample data currently
has SQL access dates instead.
2015-06-07 17:54:44 -04:00
Simon Kornblith
337a835fed
Merge pull request #753 from zotero/sjk/translation-save
...
Use Zotero.Item.fromJSON() for saving from attachments
2015-06-07 17:41:10 -04:00
Simon Kornblith
3fc38d750b
Use Zotero.Item.fromJSON() for saving from translators
...
Also:
- Move some canonicalization of items returned by translators to
Zotero.Translate
- Make Zotero.Translate#translate return a promise
- Add tests
2015-06-07 17:30:41 -04:00
Simon Kornblith
e10deedc7e
Emit valid prefs.js even when debugging not enabled
2015-06-07 17:22:57 -04:00
Simon Kornblith
ec5e20659b
Improve error handling for attachment saving
2015-06-07 17:22:57 -04:00
Dan Stillman
426ac172ff
Disable emptyTrash() test again
...
This reverts commit 0eea3eaf99
.
2015-06-07 17:16:41 -04:00
Dan Stillman
0eea3eaf99
Reenable emptyTrash() assertion to see if it still fails on Travis
2015-06-07 16:48:47 -04:00
Simon Kornblith
e27d907973
Throw an error if HTTP request yields non-OK in importFromURL()
2015-06-07 16:06:59 -04:00
Dan Stillman
6935310c75
Fix Zotero.Users.setCurrentUsername()
2015-06-07 15:50:07 -04:00