Commit Graph

2117 Commits

Author SHA1 Message Date
Simon Ho 046491f1b6 Add how to tick checkbox in issue template (#2851)
Many people are putting "*" instead of x, which causes the markdown to
render funny. Adding instructions to that particular section.
2016-10-12 16:50:19 -07:00
Miroslav Bajtoš 46ab65cf50 Merge pull request #2842 from strongloop/fix/metadata-update-delete-all
Fix description of updateAll response
2016-10-12 13:03:32 +02:00
Miroslav Bajtoš 1439446b36 Fix description of updateAll response
Correctly describe the first non-error callback arg as an `info` object
containing a `count` property.
2016-10-12 12:43:53 +02:00
Miroslav Bajtoš 3229fdbc08 Merge pull request #2841 from strongloop/feature/allow-eternal-access-tokens
Allow tokens with eternal TTL (value -1)
2016-10-12 12:29:38 +02:00
Miroslav Bajtoš 6808159427 Allow tokens with eternal TTL (value -1)
- Add a new User setting 'allowEternalTokens'
 - Enhance 'AccessToken.validate' to support eternal tokens with ttl
   value -1 when the user model allows it.
2016-10-10 13:27:22 +02:00
Candy 953cfa9e2d Merge pull request #2833 from strongloop/add_translation3
Update ja and nl translation files
2016-10-06 15:32:32 -04:00
Simon Ho ee4d79fdf0 Use GitHub issue templates (#2810) 2016-10-06 09:35:05 -07:00
Candy 927387502c Update ja and nl translation files 2016-10-06 11:06:49 -04:00
Miroslav Bajtoš 31913c048d Merge pull request #2823 from strongloop/docs/remove-release-notes
Remove 3.0 DEVELOPING & RELEASE-NOTES
2016-10-06 10:26:49 +02:00
Miroslav Bajtoš 602eebf2fb Remove 3.0 DEVELOPING & RELEASE-NOTES
The release notes were moved to loopback.io docs site.

The instructions for developers are no longer needed.
2016-10-05 16:00:49 +02:00
Miroslav Bajtoš 4e66009963 Merge pull request #2820 from strongloop/fix/promise-remote-hooks
Fix support for remote hooks returning a Promise
2016-10-05 10:53:58 +02:00
Tim van der Staaij c58bff6c3d Fix support for remote hooks returning a Promise
Fix beforeRemote/afterRemote to correctly return promises returned
by the user-provided hook callback.
2016-10-05 10:32:44 +02:00
Loay f9a58083ae Merge pull request #2795 from strongloop/PartialUpdate
Add partial update test case
2016-10-03 16:33:11 -04:00
Loay 5f5e874564 Validate non-email property partial update 2016-10-03 15:45:52 -04:00
Amirali Jafarian 9fb393196e Merge pull request #2809 from strongloop/update_release_notes
Update release notes
2016-10-02 15:55:00 -04:00
Amir Jafarian 1abbbc18e1 Update release notes 2016-10-02 15:42:34 -04:00
Rand McKinney 18d9c75abd Update README.md
Update link to doc site.
2016-09-30 08:54:16 -07:00
Candy 72b57ca68d Merge pull request #2802 from strongloop/add_translation2
Update translation files - round#2
2016-09-29 22:56:05 -04:00
Candy a31d5eea5b Update translation files - round#2 2016-09-28 13:56:14 -04:00
Candy ed8b651b98 Merge pull request #2784 from strongloop/add_license
Add license text
2016-09-23 13:23:25 -04:00
Candy 246da8fc5e Add license text 2016-09-23 10:32:22 -04:00
Miroslav Bajtoš 8a6ae998e4 Merge pull request #2779 from strongloop/fix/windows-ci
Temporarily disable Karma tests on Windows CI
2016-09-23 09:56:52 +02:00
Miroslav Bajtoš 8d0f319dd6 3.0.0
* Update deps to 3.0.0 RC (Miroslav Bajtoš)
 * Update globalization structure (Candy)
 * Call new disable remote method from model class. (Richard Pringle)
 * Add translation strings (Candy)
 * Support uniqueness for realm users (David Cheung)
 * Invalidate sessions after email change (Loay)
 * Add docs for KeyValue model (Simon Ho)
 * Fix remote method inheritance (Candy)
 * Fix double-slash in confirmation URL (Miroslav Bajtoš)
2016-09-22 12:48:40 +02:00
Miroslav Bajtoš a835d09bc8 Merge pull request #2780 from strongloop/update-deps-3.0RC
Update deps to 3.0.0 RC
2016-09-22 12:47:33 +02:00
Miroslav Bajtoš 9d259ce5a3 Update deps to 3.0.0 RC 2016-09-22 12:31:51 +02:00
Miroslav Bajtoš 54bf395249 Merge pull request #2754 from strongloop/use_common_globalize
Update globalization structure
2016-09-22 12:14:04 +02:00
Candy 640f3a8ca7 Update globalization structure 2016-09-22 11:58:00 +02:00
Miroslav Bajtoš 0cd157ca3d 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-22 10:49:00 +02:00
Miroslav Bajtoš 2f0dd6d6ec Merge pull request #2758 from strongloop/fix/disableMethodByName
Expose new method for disabling remote methods.
2016-09-22 09:39:04 +02:00
Richard Pringle 0ab33a82d4 Call new disable remote method from model class. 2016-09-21 14:09:24 -04:00
Candy 92ed2138fb Merge pull request #2755 from strongloop/add_translations
Add translation strings
2016-09-21 11:05:38 -04:00
Candy d5679666d9 Add translation strings 2016-09-21 10:29:38 -04:00
David Cheung 489ed919a5 Merge pull request #2298 from strongloop/user-realm-composite-key
Composite Key validation for Realm enabled users
2016-09-20 14:15:10 -04:00
David Cheung d544ae1bf8 Support uniqueness for realm users 2016-09-20 11:26:56 -04:00
Simon Ho c3ba632aa3 Merge pull request #2743 from strongloop/docs-for-kv-model
Add docs for KeyValue model
2016-09-19 15:29:47 -07:00
Loay 8061d1216d Merge pull request #2693 from strongloop/sessEmail
Invalidate sessions after email change
2016-09-19 13:54:31 -04:00
Loay bcc2d99a95 Invalidate sessions after email change 2016-09-19 10:24:30 -04:00
Simon Ho 845b73d4eb Add docs for KeyValue model 2016-09-18 19:45:13 -07:00
Candy 6752dd3af3 Merge pull request #2703 from strongloop/fix_remoting
Fix remote method inheritance
2016-09-13 13:56:43 -04:00
Candy d4b8cf670f Fix remote method inheritance 2016-09-13 13:23:09 -04:00
Miroslav Bajtoš 3eb9009741 Merge pull request #2738 from strongloop/fix/user-verify-email-with-empty-rest-root
Fix double-slash in confirmation URL
2016-09-13 09:07:30 +02:00
Miroslav Bajtoš 21ff383eb3 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-13 08:52:49 +02:00
Miroslav Bajtoš eec85367e7 3.0.0-alpha.5
* Use strong-remoting's new TypeRegistry (Miroslav Bajtoš)
 * test/user: don't attach User model twice (Miroslav Bajtoš)
 * app.enableAuth: correctly detect attached models (Miroslav Bajtoš)
 * Fix remoting metadata for "data" arguments (Miroslav Bajtoš)
 * Add instructions for upgrading context (Miroslav Bajtoš)
 * Discard sugar method for model creation (gunjpan)
 * Remove one-var exceptions no longer needed (Miroslav Bajtoš)
 * Rework email validation to use isemail (Miroslav Bajtoš)
 * Expose upsertWithWhere method (Sonali Samantaray)
2016-09-09 10:34:59 +02:00
Miroslav Bajtoš 252b6f41c6 Merge pull request #2696 from strongloop/feature/coercion-overhaul
Use strong-remoting's new TypeRegistry
2016-09-09 10:34:12 +02:00
Miroslav Bajtoš 6e1defcb18 Use strong-remoting's new TypeRegistry 2016-09-09 10:01:29 +02:00
Miroslav Bajtoš 92a5a08671 test/user: don't attach User model twice 2016-09-09 09:02:41 +02:00
Miroslav Bajtoš 32bdeccebf 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-09-09 09:02:41 +02:00
Miroslav Bajtoš f5acf6aebd Merge pull request #2727 from strongloop/fix/data-object-arguments-3x
Fix remoting metadata for "data" arguments
2016-09-07 14:37:15 +02:00
Miroslav Bajtoš f76edd5d61 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 14:27:58 +02:00
Miroslav Bajtoš 554ccbd035 Merge pull request #2721 from strongloop/docs/context-upgrade-2x-3x
Add instructions for upgrading context
2016-09-07 13:03:39 +02:00