Currently the return type of Role.getRoles() method is inconsistent:
role names are returned for smart roles and role ids are returned for
static roles (configured through user-role mapping).
This commit adds a new option to Role.getRoles() allowing the caller
to request role names to be returned for all types of roles.
- Fix for current implimentation that returned all models that had any
assigned roles. Context was not carried into listByPrincipalType,
setting roleId as null.
- Remove sign CLA since CI already shows unsigned CLAs
- Remove all tests must pass CI since we have to check each on a case by
case basis anyways
- Update example to include linking to the current repo using number
sign (ie. #49 in addition to org/repo#49)
Backport of #2877
* Reword ticking checkbox note in issue template (#2855) (Simon Ho)
* Add how to tick checkbox in issue template (#2851) (#2853) (Simon Ho)
* Use GitHub issue templates (#2810) (#2852) (Simon Ho)
* Allow tokens with eternal TTL (value -1) (Miroslav Bajtoš)
* Update ja and nl translation files (Candy)
* Fix support for remote hooks returning a Promise (Tim van der Staaij)
* Validate non-email property partial update (Loay)
* Update translation files - round#2 (Candy)
* Update tests to use registry for model creation (gunjpan)
* Call new disable remote method from model class. (Richard Pringle)
* Temporarily disable Karma tests on Windows CI (Miroslav Bajtoš)
* Add translation files for 2.x (Candy)
* Allow resetPassword if email is verified (Loay)
* Add docs for KeyValue model (Simon Ho)
* Invalidate sessions after email change (Loay)
* Upgrade loopback-testing to the latest ^1.4 (Miroslav Bajtoš)
- Add a new User setting 'allowEternalTokens'
- Enhance 'AccessToken.validate' to support eternal tokens with ttl
value -1 when the user model allows it.
Current implementation of `app.model(modelName, settings)`
works as a sugar for model creation. In LB 3.0, this is
not supported anymore. This backporting:
- keeps the sugar method for model creation for backward
compatibility
- updates test cases to use `app.registry.createModel()`
for model creation
Backport of #2401
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.