-
Notifications
You must be signed in to change notification settings - Fork 16
Kuz 490 repositories refactor #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Current coverage is 100%
|
+1 |
* @param {responseCallback} cb - returns Kuzzle's response | ||
*/ | ||
KuzzleSecurity.prototype.getUser = function (id, options, cb) { | ||
KuzzleSecurity.prototype.getUser = function (id, cb) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The options
parameter should stay: it may contain a queued
option, handling offline mode.
See: http://kuzzle.io/sdk-documentation/#getuser
@@ -4008,11 +4008,16 @@ KuzzleSecurity.prototype.roleFactory = function(id, content) { | |||
* @param {string} id | |||
* @param {responseCallback} cb - returns Kuzzle's response | |||
*/ | |||
KuzzleSecurity.prototype.getProfile = function (id, cb) { | |||
KuzzleSecurity.prototype.getProfile = function (id, options, cb) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The jsdoc must also be restored.
+1 |
* Add a role in the roles list | ||
* @param {KuzzleRole|string} role - can be an instance of KuzzleRole or an id in string | ||
* Add a policy in the policies list | ||
* @param {Object} role - must be an object containing at least a "roleId" member which must be a string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking: the param name is "policy" and not "role"
+1 |
No description provided.