Commit Graph

2435 Commits

Author SHA1 Message Date
Amir Jafarian a1683fca59 Auto-update by eslint --fix 2016-10-19 17:04:05 -04:00
Amir Jafarian 6acedc3bae update eslintrc according to master branch 2016-10-19 17:01:49 -04:00
Amir Jafarian 342eb866be Update eslint 2016-10-19 16:59:06 -04:00
Miroslav Bajtoš 959a821be5 Merge pull request #1144 from strongloop/feature/parameterize-kvao-tests-2x
test/kvao: add connectorCapabilities options [2.x]
2016-10-19 13:40:28 +02:00
Miroslav Bajtoš 70a1552df8 test/kvao: add connectorCapabilities options
- canExpire
 - canQueryTtl
 - ttlPrecision
 - canIterateKeys
 - canIterateLargeKeySets

These options allow connectors to disable shared tests for features
that are not supported/implemented.
2016-10-19 12:33:21 +02:00
Amirali Jafarian 459fc93012 Merge pull request #1138 from strongloop/doc_validation
Update validations.js
2016-10-14 11:32:55 -04:00
Rand McKinney 09fbfe9410 Update validations.js
Add doc of allowNull options property per #372.
Back-port 9a1ef08
2016-10-14 11:18:17 -04:00
Candy e3d76f7f19 2.53.0
* Fix bug when near filter is used (Amir Jafarian)
2016-10-13 15:35:25 -04:00
Amirali Jafarian 8caf4c8327 Merge pull request #1108 from strongloop/fix_geo_2.x
Fix the bug when near filter is used
2016-10-13 10:39:15 -04:00
Miroslav Bajtoš ff184aec16 2.52.0
* Support {defaultFn: 'shortid'} (#1110) (Simon Ho)
 * Add ilike and nilike operators (#1136) (Simon Ho)
 * Fix JSdoc (Amir Jafarian)
 * Update ja translation file (Candy)
 * Update translation files - round#2 (Candy)
 * Add 'isNewInstance' for updateAttributes (Amir Jafarian)
 * Add globalization strings (Amir Jafarian)
 * Add docs for KVAO (Simon Ho)
 * Skip test temporarily (Loay)
2016-10-13 10:13:27 +02:00
Simon Ho c3eca4025c Support {defaultFn: 'shortid'} (#1110)
- Backport of strongloop/loopback-datasource-juggler#1107 (takeover of
strongloop/loopback-datasource-juggler#1101)
- Squashed relevant commits
2016-10-12 20:58:07 -07:00
Simon Ho a9d381605e Add ilike and nilike operators (#1136)
Closes #633

Backport of #1091
2016-10-12 19:19:31 -07:00
Amir Jafarian fde4c0bfd6 Fix bug when near filter is used 2016-10-11 17:08:42 -04:00
Amirali Jafarian da57136fed Merge pull request #1134 from strongloop/1132_2x
Fix JSdoc
2016-10-11 12:54:48 -04:00
Amir Jafarian 8208e8ab63 Fix JSdoc 2016-10-11 12:21:36 -04:00
Amirali Jafarian 7e8198f88b Merge pull request #1131 from strongloop/add_translation3_2x
Update ja translation file
2016-10-06 15:03:09 -04:00
Candy 35e64d2e0b Update ja translation file 2016-10-06 14:26:46 -04:00
Candy 4d965d2de1 Merge pull request #1119 from strongloop/add_translation2_2x
Update translation files - round#2
2016-09-30 09:54:03 -04:00
Candy b7266bd1cb Update translation files - round#2 2016-09-28 15:32:13 -04:00
Amirali Jafarian 76398b7f45 Merge pull request #1105 from strongloop/newInstance_updateAttributes_2.x
Add 'isNewInstance' for updateAttributes
2016-09-23 15:34:32 -04:00
Amir Jafarian e103b50b63 Add 'isNewInstance' for updateAttributes
* Add 'isNewInstance' to loaded hook for updateAttes
2016-09-23 14:09:44 -04:00
Amirali Jafarian 24eb3d3953 Merge pull request #1104 from strongloop/add_globalization_strings
Add globalization strings
2016-09-21 10:22:50 -04:00
Amir Jafarian 74312c9948 Add globalization strings 2016-09-20 15:18:49 -04:00
Simon Ho 94ca3bcd9d Merge pull request #1100 from strongloop/backport/docs-for-kvao
Backport: Add docs for KVAO
2016-09-19 15:22:39 -07:00
Simon Ho 8edca500c1 Add docs for KVAO
Backport of #1093
2016-09-19 13:45:16 -07:00
Simon Ho d84b481483 Merge pull request #1090 from strongloop/backport/fix-ci-failure-mssql
Backport Skip test temporarily
2016-09-15 11:45:01 -07:00
Loay d324696d2a Skip test temporarily 2016-09-14 22:23:24 -04:00
Miroslav Bajtoš 71d4adb0b0 2.51.0
* Add missing "done" arg in test/kvao/ttl.suite (Miroslav Bajtoš)
 * Support nested queries for arrays (pponugo)
 * Remove expired item before executing expire (Simon Ho)
 * Fix failures for connectors (Amir Jafarian)
 * upsertWithWhere feature support in juggler DAO (Sonali Samantaray)
 * Remove ESLint from dependencies (Simon Ho)
 * Refactor TTL test suite (Simon Ho)
2016-09-12 11:21:14 +02:00
Miroslav Bajtoš f663917fe9 Add missing "done" arg in test/kvao/ttl.suite
Backport #1086
2016-09-08 10:39:47 +02:00
Miroslav Bajtoš d385dfa9d6 Merge pull request #1027 from pponugo/2.x
Support nested queries for arrays

Close #1027
2016-09-07 13:26:02 +02:00
pponugo 64a9b8d506 Support nested queries for arrays
Enhance the built-in memory connector to correctly support nested
queries for arrays in addition to objects.

E.g. if "friends" is an array of objects containing "name", then
{ where: { "friends.name": "Jane" } } should match records containing
a friend called "Jane".
2016-09-07 13:20:56 +02:00
Simon Ho a9d10ebfbb Merge pull request #1074 from strongloop/backport/remove-expired-items-before-executing-expire
Remove expired item before executing expire
2016-09-06 18:41:41 -07:00
Simon Ho 95bc2e93cc Remove expired item before executing expire
The expire feature is falsely returning 204 instead of 404 because it is
not removing expired items before execution.
2016-09-06 16:04:33 -07:00
Amirali Jafarian b15681968b Merge pull request #1052 from strongloop/upsertWithWhere_2x
upsertWithWhere feature support in juggler DAO
2016-09-06 15:51:23 -04:00
Amir Jafarian 12aadd4266 Fix failures for connectors 2016-09-06 13:41:50 -04:00
Sonali Samantaray 44e1d29879 upsertWithWhere feature support in juggler DAO
Backport from #1001
2016-09-06 13:41:50 -04:00
Miroslav Bajtoš fce166245f Merge pull request #1076 from strongloop/rm-eslint-from-deps
Remove ESLint from dependencies
2016-09-05 13:37:01 +02:00
Simon Ho 25345d56eb Remove ESLint from dependencies
This a duplicate entry as the correct ESLint configs are already listed
as devDepencies.
2016-09-04 12:20:47 -07:00
Simon Ho 9afaecaada Merge pull request #1077 from strongloop/refactor/ttl-test-suite
Refactor TTL test suite
2016-09-04 12:02:42 -07:00
Simon Ho cf432fceec Refactor TTL test suite 2016-09-03 11:36:28 -07:00
Miroslav Bajtoš b95d5ca182 2.50.0
* test/memory: remove dummy findOrCreate impl (Miroslav Bajtoš)
 * Implement `notify` for find method (Amir Jafarian)
 * kvao: implement key filter (Miroslav Bajtoš)
 * kvao: add iterateKeys() and keys() (Miroslav Bajtoš)
 * Globalize KeyValue Memory connector (Simon Ho)
 * test: Rename KVAO get test suite (Simon Ho)
2016-08-26 10:08:32 +02:00
Miroslav Bajtoš f4302363d3 Merge pull request #1065 from strongloop/cleanup/memory-test-2x
test/memory: remove dummy findOrCreate impl
2016-08-26 10:06:14 +02:00
Miroslav Bajtoš 65c8ec41e0 test/memory: remove dummy findOrCreate impl
Let the operation-hook tests use the real implementation,
now that we have it in place.
2016-08-26 09:53:19 +02:00
Amirali Jafarian 0bd7270f84 Merge pull request #1061 from strongloop/notify_find_2.x
Implement notify for find method [2.x]
2016-08-23 19:41:53 -04:00
Amir Jafarian a1a9bac9ba Implement `notify` for find method 2016-08-23 19:00:50 -04:00
Simon Ho de84a8bc7d Merge pull request #1057 from strongloop/backport/globalize-kv-mem-connector
Globalize KeyValue Memory connector
2016-08-19 12:59:31 -07:00
Miroslav Bajtoš 4f76475ee9 Merge pull request #1058 from strongloop/feature/kvao-iterate-keys-2x
kvao: add iterateKeys() and keys()
2016-08-18 10:48:10 +02:00
Miroslav Bajtoš ab47ecfbab kvao: implement key filter 2016-08-18 10:30:55 +02:00
Miroslav Bajtoš 24a9a96a26 kvao: add iterateKeys() and keys()
Add a core implementation of KVAO.iterateKeys() which returns an
AsyncIterator, inspired by
 - https://github.com/tc39/proposal-async-iteration
 - https://www.npmjs.com/package/async-iterators

This way we can safely iterate even large sets of data.

Also add KVAO.keys(), a sugar API converting the result of iterateKeys()
into a single array.
2016-08-18 10:30:53 +02:00
Simon Ho 873cb4eab6 Globalize KeyValue Memory connector
[back-port of #1056]
2016-08-17 18:54:30 -07:00