Commit Graph

2430 Commits

Author SHA1 Message Date
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
Simon Ho 2c1a056ade Merge pull request #1054 from strongloop/backport/rename-get-test-suite
Rename KVAO get test suite
2016-08-16 13:43:29 -07:00
Simon Ho 5001a98135 test: Rename KVAO get test suite
[back-port of #2591]
2016-08-16 09:47:23 -07:00
Miroslav Bajtoš 2fb6a96d77 2.49.0
* Fix error message for missing global.Promise (Miroslav Bajtoš)
 * Add TTL for KeyValue related features (Simon Ho)
 * test/kvao: setup global.Promise on Node v0.10 (Miroslav Bajtoš)
 * kv-memory: fix crash in regular cleanup (Miroslav Bajtoš)
 * Backport globalization (Amir Jafarian)
2016-08-16 16:36:13 +02:00
Miroslav Bajtoš 6d4e0513a7 Merge pull request #1051 from strongloop/fix/promise-error-message
Fix error message for missing global.Promise
2016-08-16 14:44:46 +02:00
Miroslav Bajtoš f7cfe25b60 Fix error message for missing global.Promise 2016-08-16 14:38:01 +02:00