Skip to content

Fix ParseUser#setState(state) unnecessarily creating authData #312

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

wangmengyan95
Copy link
Contributor

Fixing a bug that was introduced in #304 that caused authData to be created on ParseUser#setState(state) with a state that did not contain authData in the first place.

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @wangmengyan95, @grantland and @hallucinogen to be potential reviewers.

@@ -1435,6 +1435,35 @@ public void testSetCurrentUserStateWithoutAuthData() throws Exception {
assertEquals("valueAgain", user.get("key"));
}

@Test
public void testSetNoAuthDataCurrentUserStateWithoutAuthData() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

testSetStateDoesNotAddNonExistentAuthData

@grantland grantland added the type:bug Impaired feature or lacking behavior that is likely assumed label Dec 19, 2015
@grantland
Copy link
Contributor

Some nits and can we rename the PR and commit to say

Fix ParseUser#setState(state) unnecessarily creating authData

Fixing a bug that was introduced in #304 that caused `authData` to be created on `ParseUser#setState(state)` with a state that did not contain `authData` in the first place.

so that we have a bit more context as to what this PR is about?

@grantland grantland assigned wangmengyan95 and unassigned grantland Dec 19, 2015
@wangmengyan95 wangmengyan95 changed the title Fix set user state add none existed authData bug Fix ParseUser#setState(state) unnecessarily creating authData Dec 19, 2015
@wangmengyan95 wangmengyan95 force-pushed the wangmengyan.fix_set_user_state_add_none_existed_authData_bug branch from d04ecdf to 5e29947 Compare December 19, 2015 00:18
@facebook-github-bot
Copy link

@wangmengyan95 updated the pull request.

@grantland
Copy link
Contributor

LGTM

@grantland grantland assigned wangmengyan95 and unassigned grantland Dec 21, 2015
wangmengyan95 added a commit that referenced this pull request Dec 21, 2015
…tate_add_none_existed_authData_bug

Fix ParseUser#setState(state) unnecessarily creating authData
@wangmengyan95 wangmengyan95 merged commit 62f9912 into master Dec 21, 2015
@facebook-github-bot
Copy link

@wangmengyan95 updated the pull request.

@rogerhu rogerhu deleted the wangmengyan.fix_set_user_state_add_none_existed_authData_bug branch April 12, 2017 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants