Skip to content

Fix : User Roles not added to create, update or delete calls #374

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

Merged
merged 13 commits into from
Feb 19, 2016
Merged

Fix : User Roles not added to create, update or delete calls #374

merged 13 commits into from
Feb 19, 2016

Conversation

flessard
Copy link
Contributor

No description provided.

@flessard flessard changed the title FIX : User Roles not added to create, update or delete calls Fix : User Roles not added to create, update or delete calls Feb 12, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 12, 2016

Thanks for attempting to fix this issue. There are 7 test failures to address before further review.

@facebook-github-bot
Copy link

@flessard updated the pull request.

@gfosco
Copy link
Contributor

gfosco commented Feb 12, 2016

Down to 4... You can run tests locally with npm test

@facebook-github-bot
Copy link

@flessard updated the pull request.

@flessard
Copy link
Contributor Author

Fix this issuse #389 #294

@@ -49,7 +49,7 @@ describe('Parse Role testing', () => {
}).then((x) => {
x.set('foo', 'baz');
// This should fail:
return x.save();
return x.save({},{sessionToken: ""});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I change this because, by default the sessionToken is passed. The result of this never fail.

@@ -80,7 +80,7 @@ Auth.prototype.getUserRoles = function() {
return Promise.resolve(this.userRoles);
}
if (this.rolePromise) {
return rolePromise;
return this.rolePromise;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@facebook-github-bot
Copy link

@flessard updated the pull request.

@facebook-github-bot
Copy link

@flessard updated the pull request.

@flessard
Copy link
Contributor Author

@gfosco What is missing on this PR to be merge?

@facebook-github-bot
Copy link

@flessard updated the pull request.

@facebook-github-bot
Copy link

@flessard updated the pull request.

@facebook-github-bot
Copy link

@flessard updated the pull request.

gfosco added a commit that referenced this pull request Feb 19, 2016
Fix : User Roles not added to create, update or delete calls
@gfosco gfosco merged commit 2afb285 into parse-community:master Feb 19, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 19, 2016

👍

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.

4 participants