Simon Ho
1559db2ca3
Merge pull request #2269 from supasate/feature/do-not-allow-duplicate-role-name
...
Add feature to not allow duplicate role name
2016-05-04 20:42:13 -07:00
Supasate Choochaisri
dd78b36a17
Clean up by removing unnecessary comments
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 08:18:32 +07:00
Supasate Choochaisri
d4a869bddf
Add feature to not allow duplicate role name
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 08:18:17 +07:00
Ryan Graham
6964914bab
update copyright statements
2016-05-03 15:50:21 -07:00
Ryan Graham
8acac40ec3
relicense as MIT only
2016-05-03 15:49:10 -07:00
Miroslav Bajtoš
097984154b
Merge pull request #2283 from strongloop/add-node-v6-to-travis
...
travis: drop node@5, add node@6
2016-05-03 18:59:12 +02:00
Miroslav Bajtoš
ed766f55b4
Upgrade phantomjs to 2.x
2016-05-03 16:43:45 +02:00
Miroslav Bajtoš
4d7154a31a
app: send port:0 instead of port:undefined
...
Node v6 no longer supports port:undefined, this commit is fixing
app.listen() to correctly send port:0 when no port is specified.
2016-05-03 16:20:07 +02:00
Miroslav Bajtoš
462cec4c1c
travis: drop node@5, add node@6
2016-05-03 16:20:07 +02:00
Miroslav Bajtoš
7bc303b4c5
Merge pull request #1989 from strongloop/feature/remove-auto-attach
...
[SEMVER-MAJOR] Remove "loopback.autoAttach()"
2016-05-03 14:35:51 +02:00
Miroslav Bajtoš
9b39a59813
Disable DEBUG output for eslint on Jenkins CI
2016-05-03 14:01:40 +02:00
Miroslav Bajtoš
87bbf4502a
Remove "loopback.autoAttach()"
...
The method was deprecated since LoopBack 2.0, there is no need to keep
it around in 3.0.
2016-05-03 14:01:39 +02:00
Miroslav Bajtoš
0e6db30640
test/rest.middleware: use local registry
...
Rework tests in `test/rest.middleware.test.js` to not depend
on `app.autoAttach()` and global shared registry of Models. Instead,
each tests creates a fresh app instance with a new in-memory datasource
and a new set of Models.
2016-05-03 14:01:39 +02:00
Miroslav Bajtoš
35d9fa4b54
Fix role.isOwner to support app-local registry
2016-05-03 14:01:39 +02:00
Miroslav Bajtoš
095dce0373
test/user: use local registry
...
Rework User tests to not depend on `app.autoAttach()` and global shared
registry of Models. Instead, each tests creates a fresh app instance
with a new in-memory datasource and a new set of Models.
2016-05-03 14:01:39 +02:00
Janny
6b40c69bb3
Merge pull request #2259 from strongloop/feature/resolver-support-return-promise
...
Resolver support return promise
2016-05-02 21:07:35 -04:00
juehou
dcf88baf68
Resolver support return promise
2016-05-02 17:47:14 -04:00
Simon Ho
972a657759
Merge pull request #2273 from bionikspoon/patch-1
...
remove @private from jsdoc
2016-04-30 18:21:27 -07:00
Manu Phatak
455f0fc0ac
remove @private from jsdoc
2016-04-30 18:14:52 -05:00
Simon Ho
69b2b41692
Merge pull request #2272 from strongloop/fix/emit-remote-disabled-event
...
Fix for `remoteMethodDisabled` PR
2016-04-29 19:36:25 -07:00
Simon Ho
d16c789638
Fixes for emit `remoteMethodDisabled` PR
...
See https://github.com/strongloop/loopback/pull/2266#issuecomment-215689358
2016-04-29 16:42:13 -07:00
Simon Ho
04f5434894
Merge pull request #2266 from supasate/feature/emit-remote-method-disabled-event
...
Emit a remoteMethodDisabled event when disabling a remote method
2016-04-27 19:53:00 -07:00
Supasate Choochaisri
0ca24389b2
Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method.
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-04-28 09:03:54 +07:00
Miroslav Bajtoš
4cd84dcd8a
Merge pull request #2245 from strongloop/fix/nest-remoting-with-hooks
...
Fix typo in Model.nestRemoting
2016-04-20 09:34:43 +02:00
Tim Needham
159aaf5afa
Fix typo in Model.nestRemoting
...
Prevent apps from crashing when using `Model.nestRemoting` without
`{ hooks: false }` option.
Note that it is not possible to reproduce this bug using our current
Mocha test suite, because other tests modify the global state in such
way that the bug no longer occurs.
2016-04-19 16:51:52 +02:00
Rand McKinney
58f32dd70e
Update loopback.js
...
Update comment line that was creating invalid info in API docs.
2016-04-18 09:42:56 -07:00
Rand McKinney
88d41f84fd
Merge pull request #2155 from sghung/master
...
Fix inconsistencies in JSDoc
2016-04-06 16:01:31 -07:00
Miroslav Bajtoš
a9c7801380
Merge pull request #2108 from benkroeger/hotfix/issue-2106
...
Allow built-in token middleware to run repeatedly
2016-04-06 15:45:21 +02:00
Benjamin Kröger
9e0405de9f
Allow built-in token middleware to run repeatedly
...
Add two new options:
- When `enableDoublecheck` is true, the middleware will run
even if a previous middleware has already set `req.accessToken`
(possibly to `null` for anonymous requests)
- When `overwriteExistingToken` is true (and `enableDoublecheck` too),
the middleware will overwrite `req.accessToken` set by a previous
middleware instances.
2016-04-06 15:44:20 +02:00
Miroslav Bajtoš
1e7adb21ae
Merge pull request #2193 from strongloop/feature/eslint
...
Use eslint with loopback config
2016-04-06 13:05:01 +02:00
Miroslav Bajtoš
f9702b0ace
Use eslint with loopback config
...
Drop jshint and jscs in favour of eslint.
Fix style violations.
While we are at this, reduce the max line length from 150 to 100.
2016-04-06 10:45:30 +02:00
Janny
2a86e9535b
Merge pull request #2040 from strongloop/feature/add-promise-doc
...
Feature/add promise doc
2016-04-05 01:39:08 +08:00
Jue Hou
eb09681f21
promise docs
...
Add promise jsdoc in loopback
2016-04-04 12:35:35 -04:00
sghung@ca.ibm.com
d69ab1e411
Update JSDoc
2016-04-01 14:00:01 -04:00
Candy
982b8ac228
Merge pull request #2174 from strongloop/change_remote_method
...
Remove constraint making isStatic required
2016-03-31 09:59:53 -04:00
Candy
b5b900e0ff
Remove constraint making isStatic required
2016-03-30 11:16:32 -04:00
Simon Ho
b4e230389d
Merge pull request #1780 from linguofeng/patch-1
...
Update persisted-model.js
2016-03-22 16:10:22 -07:00
sghung@ca.ibm.com
3302391ac7
Fix inconsistencies in JSDoc
2016-03-17 23:55:12 -04:00
Miroslav Bajtoš
913dd3a188
Merge pull request #2105 from strongloop/fix/err-msg-on-connector-error
...
Improve error message on connector init error
2016-03-02 13:17:59 +01:00
Miroslav Bajtoš
93d487ffc0
Improve error message on connector init error
2016-02-26 14:46:26 +01:00
Miroslav Bajtoš
05f35731b9
Merge pull request #2088 from strongloop/fix-cannont-misspelling
...
application: correct spelling of "cannont"
2016-02-19 13:12:12 +01:00
Sam Roberts
b9acace932
application: correct spelling of "cannont"
2016-02-18 20:36:07 -08:00
Candy
804265b801
Remove sl-blip from dependency
2016-02-18 10:38:54 -05:00
Candy
632bbeec8f
Merge pull request #2039 from strongloop/remote_method
...
Use new strong-remoting API
2016-02-08 09:13:18 -05:00
Candy
0e637962d5
Use new strong-remoting API
2016-02-05 11:11:38 -05:00
Miroslav Bajtoš
782e89758e
test: remove forgotten console.trace logs
2016-02-05 12:39:47 +01:00
Miroslav Bajtoš
21ec3c8899
Merge pull request #2036 from strongloop/fix/ci-3.0
...
Fix race conditions in unit tests
2016-02-05 12:37:50 +01:00
Miroslav Bajtoš
91c1df96f0
Fix race condition in replication tests
2016-02-05 12:24:27 +01:00
Miroslav Bajtoš
e7f49af7f4
Fix race condition in error handler test
2016-02-05 09:21:47 +01:00
Miroslav Bajtoš
7ed5cf88ca
Merge pull request #2035 from strongloop/clean-xunit
...
test: remove errant console.log from test
2016-02-05 09:14:15 +01:00