Update PersistedModel.findOrCreate() JSDoc to reflect the
callback accepts an additional created boolean parameter.
This is a back-port of pull request #1983 from noderat/patch-1
We should never be showing this publically.
Adds unit test for hiding verification token.
This is a back-port of pull request #1851 from gausie/patch-4
Fix `getIdFromWhereByModelId()` to correctly detect the situation
when "bulkUpdate" performs a write operation using a where filter
containing both id attribute but also all other model attributes.
This should significantly improve the performance of change replication,
because the cost of running rectifyAll is very high.
Modify `Change.rectify` to look up the current checkpoint only when
there was actually some change made.
This should improve the performance of `rectifyAll` when called from a
regular timer and there were no changes made since the last call.
Before this commit, `rectifyAll` would perform N calls of
`Checkpoint.current` where N is the number of model instances. With
this commit in place, no call is made.
Modify `Change.rectify()` to not make any changes to the Change instance
(most notably to not modify the `checkpoint` field) when the tracked
model instance was not changed.
This should improve the performance of change replication as it reduces
the number of unnecessary replications.
For example, before this commit, every run of `rectifyAll` would
trigger a full sync of all clients, because all change instances would
be moved to the current checkpoint.
* lib/registry: fix findModel for model ctor (Miroslav Bajtoš)
* Refer to licenses with a link (Sam Roberts)
* Fix user.resetPassword to fail on email not found (Simo Moujami)
* Fix typo in doc comment (Rand McKinney)
* Do not include redundant ports in verify links (Samuel Gaus)
* Set application's id property only if it's empty. (wusuopu)
* Check configs for shared method settings (Simon Ho)
* Add test fixtures for shared methods (Simon Ho)
* Clean up .jshintrc (Simon Ho)
* Update comment about user ACL to reflect implementation (Felipe Oliveira Carvalho)
Fix `Application.resetKeys()` to reset instance id only if it is not
already set. This fixes a bug where each call of resetKeys created
a new instance.