Commit Graph

2325 Commits

Author SHA1 Message Date
Miroslav Bajtoš 4ff035aac7 Make juggler a regular dependency 2016-01-06 15:53:35 +01:00
Simon Ho 05556ff661 Merge pull request #1935 from strongloop/remove-loopback-testing
Remove dependency on loopback-testing
2015-12-31 17:18:50 -08:00
Simon Ho 186e3e8f92 Remove dependency on loopback-testing
- Copy depedent source from loopback-testing into test/helpers
- Removed loopback-testing from package.json
2015-12-31 15:59:03 -08:00
Simon Ho cdb2605633 Merge pull request #1934 from strongloop/fix-failing-tests
Fix failing tests
2015-12-31 14:55:37 -08:00
Simon Ho e8179e119d Fix failing tests
JSCS is detecting improper whitespaces lib/persisted-model.js.
2015-12-31 14:04:09 -08:00
Rand McKinney d4040dc39d Merge pull request #1910 from strongloop/fix-findOrCreate-doc
Update persisted-model.js
2015-12-22 17:11:31 -08:00
Rand McKinney 1af03613cc Update persisted-model.js
- Correct doc for findOrCreate.
- Fix indentation
- Remove quotes in example `where`
- Fix typo
- Fix spacing in notional where clause
2015-12-22 17:08:19 -08:00
Miroslav Bajtoš b0a62422c1 3.0.0-alpha.1
* Update juggler to ^3.0.0-alpha.1 (Miroslav Bajtoš)
 * Start development of 3.0 (Miroslav Bajtoš)
2015-12-22 14:01:29 +01:00
Miroslav Bajtoš 326f11c8d0 Merge pull request #1909 from strongloop/start-3.0
Start development of 3.0
2015-12-22 13:36:15 +01:00
Miroslav Bajtoš d630b764a3 Update juggler to ^3.0.0-alpha.1 2015-12-22 13:17:04 +01:00
Miroslav Bajtoš e0ce1fc446 Start development of 3.0
- Update version number in package.json, publish under "next" tag
 - Add 3.0-DEVELOPING.md describing the process
 - Add 3.0-RELEASE-NOTES.md to incrementally build release docs
2015-12-22 12:45:56 +01:00
Miroslav Bajtoš 122c1186ba 2.26.2
* Fix bulkUpdate to not trigger rectifyAll (Amir Jafarian)
2015-12-22 10:57:56 +01:00
Miroslav Bajtoš 8aa5c70720 Merge pull request #1899 from strongloop/rectifyChange_Vs_rectifyAllChanges
Fix bulkUpdate to not trigger rectifyAll
2015-12-22 10:56:41 +01:00
Amir Jafarian 4aac2776a8 Fix bulkUpdate to not trigger rectifyAll
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.
2015-12-22 10:44:28 +01:00
Miroslav Bajtoš 69940ad3b0 2.26.1
* PersistedModel: log rectify/rectifyAll triggers (Miroslav Bajtoš)
2015-12-17 15:52:08 +01:00
Miroslav Bajtoš b2c9c97c2c Merge pull request #1894 from strongloop/feature/improve-replication-debugging
PersistedModel: log rectify/rectifyAll triggers
2015-12-17 15:51:29 +01:00
Miroslav Bajtoš 5e4bf1dd25 PersistedModel: log rectify/rectifyAll triggers
Add debug logging to identify what operations trigger rectify and
rectifyAll calls.
2015-12-17 14:13:47 +01:00
Miroslav Bajtoš 3b66fc1c88 2.26.0
* change: skip cp lookup on no change (Miroslav Bajtoš)
 * Change: correctly rectify no-change (Miroslav Bajtoš)
 * Update model.js (Rand McKinney)
 * Adding properties description for User Model (David Cheung)
 * Add case-sensitve email option for User model. (Richard Pringle)
2015-12-09 09:44:03 +01:00
Miroslav Bajtoš 1b765922c9 Merge pull request #1860 from strongloop/fix/replication-performance
Fix replication performance
2015-12-08 19:32:57 +01:00
Miroslav Bajtoš 62d2b0bf0d change: skip cp lookup on no change
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.
2015-12-08 17:54:26 +01:00
Miroslav Bajtoš 6d040a98ae Merge pull request #1804 from richardpringle/master
Add case-sensitive email option for User model
2015-12-08 12:47:58 +01:00
Miroslav Bajtoš bd83df87cf Merge pull request #1855 from strongloop/fix/user-model-docs
Adding properties description for User Model
2015-12-08 12:44:33 +01:00
Amir-61 5b7982d631 Merge pull request #1847 from strongloop/add-nestRemoting-doc
Update model.js
2015-12-07 15:11:50 -05:00
Miroslav Bajtoš d2aaca7460 Change: correctly rectify no-change
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.
2015-12-07 14:13:25 +01:00
Rand McKinney 17abd8ac76 Update model.js
*Add doc comments for nestRemoting
*change cb to filterCallback in nestRemoting
2015-12-04 19:24:03 -05:00
David Cheung c4917819af Adding properties description for User Model
- Added description for `realm` `created` `lastUpdated` `status`
- End of line for descriptions to be peroid
2015-12-04 14:55:01 -05:00
Richard Pringle 2cca83c4ff Add case-sensitve email option for User model. 2015-12-03 13:18:49 -05:00
Raymond Feng bfd5059d11 2.25.0
* Fix typo in description of persistedModel.updateAttributes() (Richard Pringle)
2015-11-13 15:34:44 -08:00
Richard Pringle ab13226335 Merge pull request #1811 from strongloop/typo-fix
Fix typo in description of persistedModel.updateAttributes()
2015-11-11 16:56:29 -05:00
Richard Pringle 03c8d044ad Fix typo in description of persistedModel.updateAttributes() 2015-11-11 16:54:21 -05:00
Simon Ho f9545daf63 2.24.0
* Fix cookie-parser error (Simon Ho)
2015-11-09 17:30:25 -08:00
Simon Ho e26b9b68d9 Merge pull request #1805 from strongloop/bug/cookie-parser
Fix cookie-parser error
2015-11-09 17:28:11 -08:00
Simon Ho 444f92edab Fix cookie-parser error 2015-11-09 16:31:11 -08:00
Miroslav Bajtoš 1c1d534119 2.23.0
* 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)
2015-11-09 16:17:19 +01:00
Miroslav Bajtoš 0beb5a9e9d Merge pull request #1802 from strongloop/fix/findModel
lib/registry: fix findModel for model ctor
2015-11-09 16:15:54 +01:00
Miroslav Bajtoš 36cd5a7a78 lib/registry: fix findModel for model ctor
Fix `registry.findModel(arg)` to support the case when `arg` is already
a model constructor.
2015-11-09 16:01:43 +01:00
Sam Roberts e633617b8f Refer to licenses with a link 2015-11-03 12:27:49 -08:00
Miroslav Bajtoš 8af1b0bdfb Merge pull request #1789 from simoami/master
PasswordReset fix for #1374 and #947

Close #1789
2015-11-02 13:04:12 +01:00
Simo Moujami 403e677155 Fix user.resetPassword to fail on email not found 2015-11-02 12:55:24 +01:00
linguofeng 4717fb3dbd Update persisted-model.js
`find` to `findById`
2015-10-28 12:48:36 +08:00
Rand McKinney 32085475ed Fix typo in doc comment 2015-10-21 13:47:36 -07:00
Miroslav Bajtoš c55f19a2c1 Merge pull request #1684 from gausie/patch-3
Do not include redundant ports in verify links

Close #1684
2015-10-12 16:25:29 +02:00
Samuel Gaus 351b8026a0 Do not include redundant ports in verify links
If the protocol and port match we can ignore the port for a more
visually appealing link.
2015-10-12 16:24:30 +02:00
Miroslav Bajtoš 14e6ec554a Merge pull request #1716 from wusuopu/feature/fix-issue-1689
Set application's id property only if it's empty.

Close #1716
Fix #1689
2015-10-12 11:25:14 +02:00
wusuopu ce48521efb Set application's id property only if it's empty.
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.
2015-10-12 11:23:33 +02:00
Miroslav Bajtoš 34fca67ee0 Merge pull request #1668 from philix/comment
Update comment about user ACL to reflect implementation
2015-10-09 23:12:49 +02:00
Simon Ho e68cd8fc87 Merge pull request #1667 from strongloop/bug/1322
Return HTTP 200 when deleting a resource via REST
2015-10-01 10:30:46 -07:00
Simon Ho 26af1472e7 Check configs for shared method settings 2015-09-28 16:27:48 -07:00
Simon Ho 716ed4569f Add test fixtures for shared methods 2015-09-25 17:31:35 -07:00
Simon Ho 9a33602458 Merge pull request #1699 from strongloop/feature/clean-up-jshintrc
Clean up .jshintrc
2015-09-25 08:39:51 -07:00