Skip to content

Conversation

j33f
Copy link
Contributor

@j33f j33f commented Jul 15, 2016

No description provided.

@j33f j33f added the wip label Jul 15, 2016
@codecov-io
Copy link

codecov-io commented Jul 15, 2016

Current coverage is 100%

No coverage report found for develop at d9c6c8f.

Powered by Codecov. Last updated by d9c6c8f...638ff41

@j33f j33f removed the wip label Jul 15, 2016
@stafyniaksacha
Copy link
Contributor

+1

* @param {responseCallback} cb - returns Kuzzle's response
*/
KuzzleSecurity.prototype.getUser = function (id, options, cb) {
KuzzleSecurity.prototype.getUser = function (id, cb) {
Copy link
Contributor

@scottinet scottinet Jul 19, 2016

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) {
Copy link
Contributor

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.

@scottinet
Copy link
Contributor

+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.
Copy link

@ballinette ballinette Jul 19, 2016

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"

@ballinette
Copy link

+1

@ballinette ballinette merged commit 761cacd into develop Jul 20, 2016
@ballinette ballinette deleted the KUZ-490_Repositories_refactor branch July 20, 2016 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants