Miroslav Bajtoš
c83f84cd05
Merge pull request #2613 from strongloop/fix/globalize-perf-2x
...
Fix performance of globalization
2016-08-15 08:51:44 +02:00
Miroslav Bajtoš
3b88753c8e
Cache remoting descriptions to speed up tests
...
Calling strong-globalize is relatively expensive (about 300
microseconds for each call). When using per-app local registry in
unit-tests, each app creation requires about 500 calls of `g.t` just
for remoting metadata, i.e. about 150ms.
In this commit, we introduce `g.s` that caches the results from
strong-globalize to speed up creation of remoting metadata.
2016-08-12 13:51:12 +02:00
Miroslav Bajtoš
1dab10da3c
Revert globalization of assert() messages
2016-08-12 13:51:12 +02:00
Miroslav Bajtoš
3719ac4bb9
Merge pull request #2604 from strongloop/fix/lazy-cls
...
Fix token middleware to not trigger CLS init
2016-08-12 09:32:03 +02:00
Miroslav Bajtoš
5978cb4919
Fix token middleware to not trigger CLS init
...
Rework the token middleware to access current context via
`req.loopbackContext` instead of `loopback.getCurentContext()`.
That way the CLS/AsyncListener machinery is configured only in
applications that are using current context.
2016-08-11 18:19:31 +02:00
Miroslav Bajtoš
4c8ad2908b
Merge pull request #2605 from strongloop/feature/key-value-model-2x
...
common: add KeyValueModel
2016-08-10 16:10:29 +02:00
Miroslav Bajtoš
99dc1f9541
common: add KeyValueModel
2016-08-10 15:30:15 +02:00
Miroslav Bajtoš
bb1af5a691
Merge pull request #2559 from strongloop/deprecate/getCurrentContext
...
Deprecate current-context API
2016-08-10 13:29:51 +02:00
Miroslav Bajtoš
b08a1cfba3
Globalize current-context deprecation messages
2016-08-10 12:40:38 +02:00
Miroslav Bajtoš
ca28e7ff9e
Deprecate current-context API
...
Deprecate all current-context APIs in favour of loopback-context-cls.
2016-08-10 10:58:33 +02:00
Miroslav Bajtoš
81318e603d
test: increase timeout to prevent CI failures
...
[back-port of #2591 ]
2016-08-08 16:09:08 +02:00
Candy
16c78a83a1
Merge pull request #2581 from strongloop/backport/globalization
...
Backport of #2407
2016-08-05 14:44:36 -04:00
Candy
3767940472
Backport of #2407
2016-08-05 11:55:32 -04:00
Miroslav Bajtoš
52f1645713
Merge pull request #2585 from strongloop/update-deps-2x
...
Update dependencies to their latest versions and fix CI failures [2.x]
2016-08-05 13:35:36 +02:00
Miroslav Bajtoš
0eff26199c
test: fix timeout in rest.middleware.test
2016-08-05 11:33:57 +02:00
Miroslav Bajtoš
2eec008e0e
test: fix "socket hang up" error in app.test
...
Rework the test to always wait for the client request to finish before
calling the test done.
2016-08-05 10:54:42 +02:00
Miroslav Bajtoš
593fd6e042
test: increate timeout in Role test
2016-08-05 10:54:42 +02:00
Miroslav Bajtoš
fc5f16d833
test: make status test more robust
...
Rework assertions to report helpful messages on failure.
Increase the "elapsed" limit from 100ms to 300ms to support our
slow CI machines.
2016-08-05 10:54:42 +02:00
Miroslav Bajtoš
ed953a4c6f
test: fix broken Role tests
...
Rework the test suite to always report errors and correctly signal
when async tests are done.
This should prevent spurious test failures on CI servers that are
difficult to troubleshoot, because the error is reported for different
test case.
2016-08-05 10:54:42 +02:00
Miroslav Bajtoš
fea3b781a0
Update dependencies to their latest versions
2016-08-05 10:54:42 +02:00
jannyHou
7f5f8d6df5
Increase timeout
2016-08-03 11:11:09 -04:00
Candy
4a93935825
Merge pull request #2566 from strongloop/backport/fix_misconfigured-change-replication
...
Backport of #2565
2016-07-29 15:14:54 -04:00
Amir-61
6fd87c45e7
Merge pull request #2560 from strongloop/avoid-using-deprecated-methods
...
Avoid calling deprecated methds
2016-07-29 11:44:43 -04:00
Miroslav Bajtoš
fa8ac8d324
Backport of #2565
2016-07-29 11:39:47 -04:00
Amir Jafarian
2ab599fdd1
Avoid calling deprecated methds
...
*Avoid calling deprecated
`getHttpMethod` and `getFullPath`
2016-07-28 11:29:25 -04:00
Miroslav Bajtoš
b3c66f34c8
Merge pull request #2555 from strongloop/fix/global-registry-in-fixtures-2x
...
test: use local registry in test fixtures
2016-07-27 15:29:23 +02:00
Miroslav Bajtoš
895629632f
test: use local registry in test fixtures
...
Use local registry in test fixtures to prevent collision in globally
shared models.
Fix issues discoverd in auth implementation where the global registry
was used instead of the correct local one.
2016-07-27 15:06:32 +02:00
Loay
13cf1aa160
Merge pull request #2553 from strongloop/backport/issue580-test
...
Fix test case error
2016-07-26 15:40:37 -04:00
Loay
a8f30af49d
Fix test case error
2016-07-26 13:29:11 -04:00
Loay
5024b50063
Merge pull request #2540 from strongloop/backport/issue580
...
Backport/issue580
2016-07-25 14:46:58 -04:00
Loay
619372e51e
Backport/Fix security issue 580
2016-07-25 11:06:19 -04:00
Miroslav Bajtoš
e7bf538a2c
2.29.1
...
* Fix description for User.prototype.hasPassword (Jue Hou)
* Fix verificationToken bug #2440 (Loay)
* add missing unit tests for #2108 (Benjamin Kroeger)
2016-07-12 16:53:57 +02:00
Jue Hou
8fe77b2a06
Fix description for User.prototype.hasPassword
2016-06-17 17:35:28 -04:00
Loay
4480cd92ab
Fix verificationToken bug #2440
2016-06-17 11:16:06 -04:00
Benjamin Kroeger
7e051a7549
add missing unit tests for #2108
...
Subsequent token middleware tries to read `token.id`
when `enableDoublecheck: true`.
That caused a "Cannot read property `id` of `null`" error
when the first middleware didn't actually find a valid accessToken.
[back-port of #2227 ]
2016-06-13 15:30:28 +02:00
Miroslav Bajtoš
a1c98a8589
2.29.0
...
* test: increase timeouts on CI (Miroslav Bajtoš)
* jscsrc: remove jsDoc rule (Miroslav Bajtoš)
* Deprecate getters for express 3.x middleware (Miroslav Bajtoš)
* Remove env.json and strong-pm dir (Ritchie Martori)
* Fix JSCS unsupported rule error (Jason)
* Resolver support return promise (juehou)
* Update user.js (Rik)
* Backport separate error checking and done logic (Simon Ho)
* Clean up by removing unnecessary comments (Supasate Choochaisri)
* Add feature to not allow duplicate role name (Supasate Choochaisri)
* update/insert copyright notices (Ryan Graham)
* relicense as MIT only (Ryan Graham)
* Upgrade phantomjs to 2.x (Miroslav Bajtoš)
* app: send port:0 instead of port:undefined (Miroslav Bajtoš)
* travis: drop node@5, add node@6 (Miroslav Bajtoš)
* Disable DEBUG output for eslint on Jenkins CI (Miroslav Bajtoš)
* test/rest.middleware: use local registry (Miroslav Bajtoš)
* Fix role.isOwner to support app-local registry (Miroslav Bajtoš)
* test/user: use local registry (Miroslav Bajtoš)
2016-06-07 17:07:07 +02:00
Miroslav Bajtoš
f54a83d530
Merge pull request #2395 from strongloop/deprecate-express-middleware-2.x
...
[SEMVER-MINOR] Deprecate getters for express 3.x middleware
2016-06-01 10:27:08 +02:00
Miroslav Bajtoš
b013e66883
test: increase timeouts on CI
2016-06-01 09:26:45 +02:00
Miroslav Bajtoš
05f8774ed6
jscsrc: remove jsDoc rule
...
The rule is no longer supported.
2016-05-31 18:58:14 +02:00
Miroslav Bajtoš
75da4c7784
Deprecate getters for express 3.x middleware
...
In LoopBack 3.0, we are removing these getters, see #2394 .
2016-05-31 18:58:10 +02:00
Ritchie Martori
25fe4970e6
Remove env.json and strong-pm dir
...
[back-port of https://github.com/strongloop/loopback/pull/2327 ]
2016-05-13 13:46:48 +02:00
Jason
6097fbc005
Fix JSCS unsupported rule error
...
Replace 'validateJSDoc' rule with 'jsDoc'. 'validateJSDoc' was
deprecated in v1.7.0.
In related news, JSCS was recently deprecated in favor of ESlint
so .jscrc can be removed once features have been rolled over.
2016-05-12 16:56:06 -07:00
Simon Ho
14aed2251c
Merge pull request #2317 from strongloop/backport/change-all-hrefs-in-verification-email
...
Update user.js
2016-05-10 17:15:23 -07:00
juehou
8fef4845f8
Resolver support return promise
2016-05-10 18:00:42 -04:00
Rik
7868803711
Update user.js
...
allow to change all {href} instances in user.verify() mail into generated url instead of just one
2016-05-09 12:32:05 -07:00
Simon Ho
3f54b07ab8
Merge pull request #2309 from strongloop/backport/separate-error-and-done-logic
...
Backport separate error checking and done logic
2016-05-06 15:33:36 -07:00
Simon Ho
25ade96d27
Backport separate error checking and done logic
2016-05-06 14:07:38 -07:00
Simon Ho
9311e918cb
Merge pull request #2296 from strongloop/backport/do-not-allow-duplicate-role-names
...
Backport/do not allow duplicate role names
2016-05-05 11:35:42 -07:00
Supasate Choochaisri
e89fbd7ce8
Clean up by removing unnecessary comments
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 10:51:40 -07:00
Supasate Choochaisri
4798b2f8c9
Add feature to not allow duplicate role name
...
- Also fix jshint error in backported test
2016-05-05 10:51:28 -07:00