-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Removing sessionToken and authData from _User objects included in a query #1450
Conversation
…uery This bug caused sessionToken to be replaced on client side to some old sessionToken from DB.
Good catch! Thanks for the PR! Can you add a unit test to prevent subsequent regressions? |
Sorry, but I'm not sure how to write a test for that. I was having problems with users, that were migrated from Parse.com. Anyway, I've already spent to much time on this issue... :( |
If you had to make a fix, that means there was an error somehow. The unit test will make sure subsequent refactoring don't resurface that error. Without it, that's really problematic for us, as we won't be able to make sure your fix and the behaviour it introduces can be properly maintain over time. |
Current coverage is
|
One small nit, can you remove https://github.com/ParsePlatform/parse-server/pull/1450/files#diff-dc168077f7f927cefd5df84cb82228a6R453 |
I don't understand where this line comes from. I can't see it here: |
it's line 453 of the same file |
@flovilmart take a look at this https://s3-eu-west-1.amazonaws.com/emctmp/github_magic.mov |
when you opened the link a line what highlighted in yellow, that's a variable that don't seems to be used anywhere. |
@flovilmart I can see that line only when I open your link. But when I change Diff view options, it disappears (thats what I tried to show you in my video). Also, I can't see that line in my commit. |
You didn't changed that line, I'm asking you to remove it as it's unused. |
I feel that there is some kind of miscommunication going on. I'm trying to tell you that I did not commit that line. Please open this link and take a look for your self: simonas-notcat@acb294d?diff=unified |
I know you did not commit that line, I'm asking you to remove it as you removed the reference to className in your commit and we have a dangling variable that is never used. |
@simonas-notcat updated the pull request. |
@flovilmart I think yesterday I was too tired to figure out what you were asking :). Hope now it's ok |
Yeah that's great! Thanks |
This bug caused sessionToken to be replaced on client side to some old
sessionToken from DB.
There was a similar issue discussed here: #373 , but the proposed fix had a bug in it.