Commit Graph

1162 Commits

Author SHA1 Message Date
Chris S cff0e15936 Force principalId to be a string.
Added a defensive check for undefined to avoid problems
when converting to a string.
2014-10-22 10:05:29 -05:00
Miroslav Bajtoš c65b80432b Merge pull request #433 from fabien:feature/normalize-http-path
Support normalizeHttpPath

Close #433
2014-10-22 09:54:36 +02:00
Fabien Franzen 568c8662b4 Support per-model and per-handler remoting options
Allow the developer to pass custom `remoting` options via Model
settings, e.g.

    PersistedModel.extend(
      'MyModel',
      { name: String },
      {
        remoting: { normalizeHttpPath: true }
      });

Also add `options` arg to `app.handler`, this object is passed directly
to strong-remoting handler.
2014-10-22 09:54:15 +02:00
Rand McKinney 2384c9d841 Fix JSdoc for registerResolver 2014-10-20 14:45:40 -07:00
Miroslav Bajtoš d0a817ff43 Merge pull request #659 from strongloop/fix/url-generated-on-windows
lib/application: improve URL building algo
2014-10-20 19:00:59 +02:00
Miroslav Bajtoš 80020eb273 lib/application: improve URL building algo
When running on Unix and no hostname is specified, use `0.0.0.0`
as the hostname instead of `localhost`.

When running on Windows and the hostname is either not specified or
it is `0.0.0.0` or `::`, use `localhost` in the URL. The reason is
that Windows cannot open URLs using `0.0.0.0` as a hostname.
2014-10-20 13:47:24 +02:00
Rand McKinney f511bd38c9 Fix findById callback signature 2014-10-15 13:45:15 -07:00
Rand McKinney e4118c367d JSdoc fixes
Ad:
 -  update is alias for updateAll.
 -  Make callback optional for save method
2014-10-15 13:40:14 -07:00
Ritchie Martori 360063a5d2 2.5.0 2014-10-15 11:57:46 -07:00
Miroslav Bajtoš 85fd27a492 Merge pull request #648 from strongloop/fix/missing-loopback-var
Fix places using undefined variables
2014-10-15 17:15:40 +02:00
Miroslav Bajtoš 20026a9d04 Fix places using undefined variables
Also enable jshint option "undefined" in order to catch these kind
of errors in the future.
2014-10-15 16:44:00 +02:00
Miroslav Bajtoš b6abba340b Merge pull request #645 from strongloop/docs/api-doc-fixes-2
Clean up jsdoc comments
2014-10-15 09:45:37 +02:00
crandmck 2f4a54d93c Clean up jsdoc comments
Add class properties, expose some methods that should have
been documented, etc.
2014-10-15 09:42:24 +02:00
Miroslav Bajtoš dcedfa03a1 Merge pull request #635 from strongloop/feature/builtin-models-defined-via-json
Define built-in models via JSON
2014-10-14 09:25:55 +02:00
Miroslav Bajtoš 0906a6f5b3 models: move Change LDL def into a json file 2014-10-14 09:04:43 +02:00
Miroslav Bajtoš 6cbc231fba models: move Checkpoint LDL def into a json file 2014-10-14 09:04:43 +02:00
Miroslav Bajtoš 461ae92c1c models: move Role LDL def into a json file 2014-10-14 09:04:43 +02:00
Miroslav Bajtoš e9c86163aa models: move RoleMapping def into its own files 2014-10-14 09:04:43 +02:00
Miroslav Bajtoš 7c01d59d80 models: move ACL LDL def into a json file 2014-10-14 09:04:43 +02:00
Miroslav Bajtoš ef890d5f26 models: move Scope def into its own files 2014-10-14 08:58:17 +02:00
Miroslav Bajtoš 5f20652241 models: move AccessToken LDL def into a json file 2014-10-14 08:58:17 +02:00
Miroslav Bajtoš 1e6beabbd2 models: move Application LDL def into a json file
Move some of the comments describing properties into jsdoc.
2014-10-14 08:58:17 +02:00
Miroslav Bajtoš 551d109a20 models: move Email LDL def into `email.json` 2014-10-14 08:58:17 +02:00
Miroslav Bajtoš 920d3be6a3 models: move User LDL def into `user.json` 2014-10-14 08:58:17 +02:00
Miroslav Bajtoš 01d17e636a test: run more tests in the browser
Add two more test files to `test/karma.conf.js`:

 - test/loopback.test.js
 - test/model.application.test.js
2014-10-14 08:58:17 +02:00
Miroslav Bajtoš b1e0edb22b test: verify exported models 2014-10-14 08:58:17 +02:00
Miroslav Bajtoš b8e877c5e5 test: remove infinite timeout
The infinite timeout was useful when debugging, which is not a good
reason for keeping it around when not debugging.
2014-10-14 08:58:17 +02:00
Miroslav Bajtoš df9fe90d35 Auto-load and register built-in `Checkpoint` model 2014-10-14 08:58:16 +02:00
Raymond Feng 242b44ed2b Skip static ACL entries that don't match the property 2014-10-13 16:45:36 -07:00
Miroslav Bajtoš 905fbf4267 Merge pull request #640 from strongloop/feature/move-models-to-common
Move models to common/models
2014-10-13 19:14:41 +02:00
Miroslav Bajtoš 1fe0110849 Dismantle `lib/models`.
- Move core models `Model` and `PersistedModel` to `lib/`.
 - Move `AccessContext` class to `lib/`, since it is not a model.
 - Move all other built-in models to `common/models`.

This is a preparation for extracting model definitions to JSON files.
By splitting the change into multiple commits, git is able to keep track
of file moves (renames).
2014-10-13 12:09:27 +02:00
Miroslav Bajtoš 3a0f793c9b Register built-in models in a standalone file
Move the code registering built-in models to a new file
`lib/builtin-models.js`.
2014-10-13 12:09:19 +02:00
Miroslav Bajtoš 0fda4c4193 Merge tag 'v2.4.1'
2.4.1
2014-10-10 19:52:21 +02:00
Miroslav Bajtoš 6079792072 Merge branch 'release/2.4.1' into production 2014-10-10 19:52:18 +02:00
Miroslav Bajtoš 59457eef6f 2.4.1 2014-10-10 19:51:52 +02:00
Miroslav Bajtoš 9d000c2933 Merge pull request #633 from strongloop/fix-change-id-property
models/change: fix `id` property definition
2014-10-10 19:48:40 +02:00
Miroslav Bajtoš 846a0b0074 models/change: fix `id` property definition
Remove the flag `generated:true`, as it does not work together with
a custom `setter.id` function.
2014-10-10 19:10:42 +02:00
Rand McKinney 223fa7a442 Added class properties jsdoc. 2014-10-08 17:26:45 -07:00
Rand McKinney 7aca64a660 Fixed up JS Doc 2014-10-08 15:07:03 -07:00
Rand McKinney 6de9645f45 Added class properties jsdoc. 2014-10-06 10:15:26 -07:00
Ryan Graham 8d851e8b5f Update contribution guidelines
Replace commit signing process with https://cla.strongloop.com/
2014-10-01 18:04:34 -07:00
Rand McKinney 8af1b96a47 Document ACL class properties 2014-10-01 17:21:22 -07:00
Rand McKinney abdaa4a1b9 Add properties JSdoc. 2014-10-01 16:25:03 -07:00
Ritchie Martori b00bce330f 2.4.0 2014-10-01 15:01:13 -07:00
Ritchie Martori b69f77c003 Merge pull request #587 from strongloop/feature/move_remote_connector
Move looback remote connector to npm module
2014-10-01 14:52:02 -07:00
Krishna Raman b5516757ae Move looback remote connector to npm module 2014-10-01 14:48:34 -07:00
Ritchie Martori 17ac0e8dd4 2.3.1 2014-10-01 13:39:07 -07:00
Ritchie Martori 0e8c019534 Merge pull request #601 from strongloop/doc/user-props
Document user class properties
2014-10-01 13:38:55 -07:00
Ritchie Martori 056a392649 2.3.0 2014-10-01 10:55:53 -07:00
Ritchie Martori 724b721144 Update strong-remoting version 2014-10-01 10:55:28 -07:00