Richard Pringle
f7dbc97763
Call new disable remote method from model class.
2016-09-23 11:14:51 -04:00
Miroslav Bajtoš
5ee43fec83
Merge pull request #2783 from strongloop/fix/windows-ci-2x
...
Temporarily disable Karma tests on Windows CI
2016-09-23 10:22:06 +02:00
Miroslav Bajtoš
6ac1f694b9
Temporarily disable Karma tests on Windows CI
...
We are observing frequent test failures on Windows CI, where PhantomJS
cannot start because there are no free handles available. Finding
and fixing the process leaking handles is non-trivial and will take
long time.
This commit disables Karma tests on Windows CI machines to prevent
build failures that we are ignoring anyways.
2016-09-23 09:58:16 +02:00
Candy
f3317ec39b
Merge pull request #2768 from strongloop/add_translation
...
Add translation files for 2.x
2016-09-21 17:34:45 -04:00
Candy
74063ab559
Add translation files for 2.x
2016-09-20 14:15:19 -04:00
Loay
bd3f875ced
Merge pull request #2763 from strongloop/backport/allow-reset-emailVerified
...
Backport/ Allow resetPassword if EmailVerified
2016-09-20 13:03:08 -04:00
Loay
59eeb99803
Allow resetPassword if email is verified
2016-09-20 11:29:56 -04:00
Loay
e10dcf7c2c
Merge pull request #2759 from strongloop/backport/invalidate-email-sessions
...
Backport/invalidate email sessions
2016-09-20 09:48:16 -04:00
Simon Ho
f7c74eb24d
Merge pull request #2760 from strongloop/backport/docs-for-kv-model
...
Backport: Add docs for KeyValue model
2016-09-19 17:08:26 -07:00
Simon Ho
f7f448d569
Add docs for KeyValue model
...
Backport of #2743
2016-09-19 15:39:01 -07:00
Loay
fa310d5882
Invalidate sessions after email change
2016-09-19 14:55:23 -04:00
Miroslav Bajtoš
14b8426687
Merge pull request #2736 from strongloop/update/loopback-testing-in-2x
...
Upgrade loopback-testing to the latest ^1.4 [2.x-only]
2016-09-13 09:13:57 +02:00
Miroslav Bajtoš
ec8250cf58
2.34.1
...
* Fix double-slash in confirmation URL (Miroslav Bajtoš)
2016-09-13 09:08:28 +02:00
Miroslav Bajtoš
68558d7afa
Merge pull request #2718 from strongloop/fix/user-verify-email-with-empty-rest-root-2x
...
Fix double-slash in confirmation URL
2016-09-13 08:49:23 +02:00
Miroslav Bajtoš
3df5b2814c
Fix double-slash in confirmation URL
...
Fix the code building the URL used in the email-verification email
to prevent double-slash in the URL when e.g. restApiRoot is '/'.
Before:
http://example.com//users/confirm ?...
Now:
http://example.com/users/confirm ?...
2016-09-12 17:12:24 +02:00
Miroslav Bajtoš
c4214024be
Upgrade loopback-testing to the latest ^1.4
2016-09-12 13:21:07 +02:00
Miroslav Bajtoš
7d1f31cfb4
2.34.0
2016-09-12 11:27:35 +02:00
Miroslav Bajtoš
8f642b593c
2.33.0
...
* Fix data argument for upsertWithWhere (Amir Jafarian)
* Expose upsertWithWhere (Sonali Samantaray)
* Fix remoting metadata for "data" arguments (Miroslav Bajtoš)
* Rework email validation to use isemail (Miroslav Bajtoš)
2016-09-09 10:25:18 +02:00
Amirali Jafarian
73962fb3cc
Merge pull request #2729 from strongloop/Fix_data_argument_upsertWithWhere
...
Fix data argument for upsertWithWhere
2016-09-07 14:19:27 -04:00
Amir Jafarian
4d6f2da578
Fix data argument for upsertWithWhere
...
* Related PR: #2727
2016-09-07 13:52:35 -04:00
Amirali Jafarian
f741c1c3b9
Merge pull request #2722 from strongloop/expose_upsertWithWhere_2.x
...
Expose upsertWithWhere
2016-09-07 13:11:58 -04:00
Sonali Samantaray
4c013deaae
Expose upsertWithWhere
...
Backport of #2539
2016-09-07 12:41:56 -04:00
Miroslav Bajtoš
69103d53f1
Merge pull request #2702 from strongloop/fix/data-object-arguments
...
Fix remoting metadata for "data" arguments
2016-09-07 14:09:24 +02:00
Miroslav Bajtoš
fcfdb73bdb
Fix remoting metadata for "data" arguments
...
Fix the definition of "data" argument to
{ type: 'object', model: modelName, ... }
That way strong-remoting passed the request body directly to the model
method (does not create a new model instance), but the swagger will
still provide correct schema for these arguments.
This fixes a bug where upsert in relation methods was adding default
property values to request payload.
2016-09-07 12:59:01 +02:00
Miroslav Bajtoš
74deec8142
Merge pull request #2716 from strongloop/feature/isemail-2x
...
Rework email validation to use isemail
2016-09-06 13:52:09 +02:00
Miroslav Bajtoš
381222bf7a
Rework email validation to use isemail
...
Drop hand-crafted RegExp in favour of a 3rd-party module that supports
RFC5321, RFC5322 and other relevant standards.
2016-09-06 13:00:27 +02:00
Miroslav Bajtoš
eb43412439
2.32.0
...
* test/user: don't attach User model twice (Miroslav Bajtoš)
* app.enableAuth: correctly detect attached models (Miroslav Bajtoš)
* Apply g.f to literal strings (Candy)
* Make the app instance available to connectors (Subramanian Krishnan)
* Reorder PATCH Vs PUT endpoints (Amir Jafarian)
* streamline use if `self` (Benjamin Kroeger)
* resolve related models from correct registry (Benjamin Kroeger)
* KeyValueModel: add API for listing keys (Miroslav Bajtoš)
2016-09-05 15:06:18 +02:00
Miroslav Bajtoš
f362084770
Merge pull request #2697 from strongloop/fix/various
...
Fix app.enableAuth and test/user
2016-09-01 16:49:36 +02:00
Miroslav Bajtoš
bc10d68c54
test/user: don't attach User model twice
2016-08-31 15:29:18 +02:00
Miroslav Bajtoš
07a04b71da
app.enableAuth: correctly detect attached models
...
Fix a typo in "app.enableAuth" that caused the method to not detect
the situation when e.g. the built-in User model is already attached
to a datasource.
2016-08-31 15:29:18 +02:00
Candy
c485d0f276
Merge pull request #2688 from strongloop/backport/fix_glob
...
Apply g.f to literal strings
2016-08-29 18:45:47 -04:00
Candy
069d3e8f2f
Apply g.f to literal strings
...
Backport #2684
2016-08-29 10:40:36 -04:00
Miroslav Bajtoš
5f74e74ea0
Merge pull request #2687 from strongloop/backport/set-datasource-app-2x
...
Make the app instance available to connectors
2016-08-29 15:15:26 +02:00
Subramanian Krishnan
6e71a52e90
Make the app instance available to connectors
2016-08-29 14:57:43 +02:00
Amirali Jafarian
bc3008d469
Merge pull request #2682 from strongloop/backport/reorder_put_patch
...
Reorder PATCH Vs PUT endpoints
2016-08-26 17:34:11 -04:00
Amir Jafarian
55eb8d72e6
Reorder PATCH Vs PUT endpoints
...
* Reorder PATCH Vs PUT endpoints for update* methods
* Backport of #2670
2016-08-26 16:21:45 -04:00
Miroslav Bajtoš
f99e1a0242
Merge pull request #2673 from strongloop/fix/acl-related-model-resolution-2x
...
Fix acl related model resolution
2016-08-25 12:43:25 +02:00
Benjamin Kroeger
ecd881a0f3
streamline use if `self`
2016-08-25 10:39:44 +02:00
Benjamin Kroeger
c538aa764d
resolve related models from correct registry
...
Also modify setup of test servers when ACL was used, force the app
to `loadBuiltinModels` with localRegistry.
2016-08-25 10:39:44 +02:00
Miroslav Bajtoš
0627f62e45
Merge pull request #2654 from strongloop/feature/kvao-iterate-keys-2x
...
KeyValueModel: add API for listing keys
2016-08-18 14:21:45 +02:00
Miroslav Bajtoš
b221af7cf6
KeyValueModel: add API for listing keys
...
- Expose "keys()" at "GET /keys"
- Add a dummy implementation for "iterateKeys" to serve a useful error
message when the model is not attached correctly.
2016-08-18 13:34:29 +02:00
Miroslav Bajtoš
56fa9829f7
2.31.0
...
* Fix token middleware crash (Carl Fürstenberg)
* Support 'alias' in mail transport config. (Samuel Reed)
2016-08-17 16:26:40 +02:00
Miroslav Bajtoš
91b9a00388
Merge pull request #2649 from strongloop/fix/token-in-context
...
Fix token middleware crash [2.x]
2016-08-17 14:19:35 +02:00
Carl Fürstenberg
ba2fe0ee05
Fix token middleware crash
...
Fix token middleware to check if `req.loopbackContext` is active.
The context is not active for example when express-session calls
setImmediate which breaks CLS.
2016-08-17 13:42:43 +02:00
Miroslav Bajtoš
378aba60ae
Merge pull request #2489 from STRML/mailAlias
...
Support 'alias' in mail transport config.
2016-08-16 16:19:45 +02:00
Miroslav Bajtoš
7f02191838
2.30.0
...
* Revert globalization of Swagger descriptions (Miroslav Bajtoš)
* Expose `Replace*` methods (Amir Jafarian)
* Add bcrypt validation (Loay)
* Cache remoting descriptions to speed up tests (Miroslav Bajtoš)
* Revert globalization of assert() messages (Miroslav Bajtoš)
* Fix token middleware to not trigger CLS init (Miroslav Bajtoš)
* common: add KeyValueModel (Miroslav Bajtoš)
* Globalize current-context deprecation messages (Miroslav Bajtoš)
* Deprecate current-context API (Miroslav Bajtoš)
* test: increase timeout to prevent CI failures (Miroslav Bajtoš)
* Backport of #2407 (Candy)
* test: fix timeout in rest.middleware.test (Miroslav Bajtoš)
* test: fix "socket hang up" error in app.test (Miroslav Bajtoš)
* test: increate timeout in Role test (Miroslav Bajtoš)
* test: make status test more robust (Miroslav Bajtoš)
* test: fix broken Role tests (Miroslav Bajtoš)
* Update dependencies to their latest versions (Miroslav Bajtoš)
* Increase timeout (jannyHou)
* Backport of #2565 (Miroslav Bajtoš)
* Avoid calling deprecated methds (Amir Jafarian)
* test: use local registry in test fixtures (Miroslav Bajtoš)
* Fix test case error (Loay)
* Backport/Fix security issue 580 (Loay)
2016-08-16 16:15:01 +02:00
Miroslav Bajtoš
86d0befa11
Merge pull request #2621 from strongloop/fix/unglobalize-swagger-2x
...
Revert globalization of Swagger descriptions [2.x]
2016-08-16 14:28:07 +02:00
Miroslav Bajtoš
7932d75c44
Revert globalization of Swagger descriptions
2016-08-16 14:02:41 +02:00
Amir-61
6c9df360b9
Merge pull request #2435 from strongloop/expose_endpoints_2.x
...
Expose `Replace*` methods for 2.x
2016-08-15 15:05:32 -04:00
Amir Jafarian
e562137807
Expose `Replace*` methods
...
*Re-mapping `updateAttributes` endpoint to use
`PATCH` and `PUT`(configurable) verb
*Exposing `replaceById` and `replaceOrCreate` via
`POST` and `PUT`(configurable) verb
2016-08-15 12:17:36 -04:00