-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
fix: Parse.ParseUser.LogOutAsync
optimization
#403
Conversation
Thanks for opening this pull request!
|
Curious to know the coverage now |
@mtrezza to help you out, |
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.
Could you just take a look at the warnings in the CI regarding unused vars, etc? There may be some clean-up needed.
I wonder why this PR contains so many changes while it is supposed to fix only 1 failing test. For example, what do the changes in |
Hi @mtrezza . The reason for those is because I needed to cleanup tests which
the one file with changes that were not warranted was ObjectTest and that's because As I had done my overall fix over 2days ago, I had to ensure tests work and I even added more tests for coverage. If you wish for me to remove all the code cleanups, I will, but that will lead to warnings and errors that I would frankly not circle back to as these will be redundant. If you wish for me to remove the additional tests codes from ObjectTest so as to stick to the scope... sure. I'll do that. As of now, I am happy and they all pass and any specific change is either a cleanup or a code TEST addition. I hope this fully clears things up for all now. |
I understand that splitting a large PR into smaller ones, like here, can be challenging as the changes are often entangled. Which is why a PR should focus on a single issue and any optimization that is not part of the touched code should move into other PRs. But let's merge this, so we can get ahead with the other PRs. |
Was there an actual bug in the code or was this merely a test issue? |
Only tests |
Could you explain the changes in
They look like more than simple refactors. |
It's literally the same thing, just expanded them. for readibility.
to ensure that Data is Always passed in http request as sometimes it would be null
Other changes are just done due to copy pasting since I had to split them |
Explained here. |
That sounds like a separate issue, more than a refactor. I thought the additional changes were just refactors. I'm having doubts now; how much work would it be to strip this PR down to the bare issue of Parse User login? |
The refactors are not the issue, I said earlier that we can just merge them. By "refactor" I mean simple code restructuring like the revert in 9b4e168 that does not change the logic. But you mentioned earlier that the changes in
How is that related to the logout issue? Is that a bug or did I misunderstand your comment? I also see some code being removed like timeouts:
How are these changes related to the logout issue? I also didn't see these timeouts moved to another place, they were just removed. That to me looks like more than a "refactor" but actually a change in logic. Or have I missed something in the changes page? Sorry for being so persistent; I want to get this PR merged quickly, but these things are still unclear to me. |
Sure.
And that needed some time because the server replies back, so I added a slightly higher timeout - NOT necessary but useful to give enough time for a round trip even if (and especially) when rejected. In #404, I removed it since the code structure was now much more understandable to me, so I didn't need to rely much on this timeout approach. Like I said as we had v4.0.0 merged, I immediately went back to at least increase test coverage or fix immediate bugs since I had feedback on my end too, given that my update had broken Parse LQ. So It felt all the more natural to push a full corrective update with all fixes AND more coverages, which was my aim ultimately - given that I had just learned and understood, I wanted to give back. But these separation led to more questions that answer.
My aim with the first PR was to quickly push a more stable and overall reliable code. Hence why I was curious about the code coverage in the beginning. But with all these tests failing online and passing on my end, then back and forths I'm just hoping it fixes the issues people face using the official update. |
I'll hereby explain to you WHAT each change mean. I preface by saying too ; this is not a test on your knowledge or so.
|
Makes more sense to me, I think we can go ahead now. Thanks for taking the time to lay it all out. We'll merge this as a |
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.
Looks good
Parse.ParseUser.LogOutAsync
optimization
## [4.0.1](4.0.0...4.0.1) (2024-12-24) ### Bug Fixes * `Parse.ParseUser.LogOutAsync` optimization ([#403](#403)) ([a0daac7](a0daac7))
🎉 This change has been released in version 4.0.1 |
Fixed an issue Parse LogoutAsync's test would not pass.
Closes #400
Now All user tests so far pass hopefully better coverage too.;