Closed lanitochka17 closed 2 months ago
Triggered auto assignment to @isabelastisser (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@isabelastisser FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
VBA Link does not sign user in when redirected
the App only call CLOSE_ACCOUNT api. this is the response from BE
the BE does not remove the session on Onyx
We could use signOutAndRedirectToSignIn function to reset the token and navigate to the sign-in page.
we could also remove the session from optimistic data.
Unable to close unverified account. The request completes but the user isn't logged out.
When the request is completed, there is already a clear
onyx command to clear the onyx so the user is logged out. However, when we receive the response, doesClientNeedToBeUpdated
returns true which will call OnyxUpdates.saveUpdateInformation
which triggers GetMissingOnyxMessages
but fails because the account is already closed, so the response onyx data is never applied.
https://github.com/Expensify/App/blob/633e708dfe3d2aba47dbb2091ba1f0f8683bfaaf/src/libs/Middleware/SaveResponseInOnyx.ts#L28-L33
The reason doesClientNeedToBeUpdated
returns true is because the lastUpdateIDAppliedToClient
is smaller than the previousUpdateID
response from CloseAccount.
https://github.com/Expensify/App/blob/633e708dfe3d2aba47dbb2091ba1f0f8683bfaaf/src/libs/actions/OnyxUpdates.ts#L162-L169
You can see that previousUpdateID
is the lastUpdateID
of the previous request.
But for the CloseAccount response, the previousUpdateID
is bigger than the previous request lastUpdateID
, so the app detected there is missing onyx data.
Fix it on the BE so the correct previousUpdateID
is returned or if we want to fix this on the FE, we can add CloseAccount request to the requestsToIgnoreLastUpdateID
list because we don't care if there is missing data when closing an account.
https://github.com/Expensify/App/blob/633e708dfe3d2aba47dbb2091ba1f0f8683bfaaf/src/libs/Middleware/SaveResponseInOnyx.ts#L6-L8
Job added to Upwork: https://www.upwork.com/jobs/~01e5a38773a3b72e10
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mkhutornyi (External
)
@mkhutornyi please review the proposals above when you have a chance. Thanks!
Is this bug is still open or assigned to someone else ?
📣 @jasham! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: jasham009@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/jasham4ryou
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
Is this bug is still open or assigned to someone else ?
@mkhutornyi, please review the proposals above!
@jasham, this is still open.
@mkhutornyi I DM'd you for visibility. Thanks!
reviewing
Pulling engineer for review since it's possible to fix in BE 🎀👀🎀
Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Bump @AndrewGable. Thanks!
@isabelastisser - Did you confirm we do want to allow closing of unverified accounts?
@AndrewGable, nope! I will post this to BZ now. Thanks!
Asked here.
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
@AndrewGable, @isabelastisser, @mkhutornyi Eep! 4 days overdue now. Issues have feelings too...
Not overdue
@AndrewGable @isabelastisser @mkhutornyi this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
@AndrewGable, @isabelastisser, @mkhutornyi Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
Asking in product:
https://expensify.slack.com/archives/C03U7DCU4/p1720453236924149
@AndrewGable, from the discussion:
I think you should be able to close the account and then if the real email owner ever tried to create an Expensify account it would have the effect of reopening the account, the same as would happen with a verified account
what do you think?
@AndrewGable, @isabelastisser, @mkhutornyi Still overdue 6 days?! Let's take care of this!
Bump @AndrewGable. Thanks!
I agree with Jenna 👍
Thanks, @AndrewGable ! Should I keep this external? Unsure based on @mkhutornyi's comment:
https://github.com/Expensify/App/issues/44114#issuecomment-2190003156
@AndrewGable, @isabelastisser, @mkhutornyi 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
Bump @AndrewGable
https://github.com/Expensify/App/issues/44114#issuecomment-2221845948
Sure we can keep external, I am OOO for the next week and a half so let's find someone else to push this along. Thanks!
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
@mkhutornyi, we are keeping this external so let's pick a proposal! Thanks!
@isabelastisser, @mkhutornyi Whoops! This issue is 2 days overdue. Let's get this updated quick!
Bump @mkhutornyi, please provide an update! I DM'd you for visibility. Thanks!
Given that we're good to fix this in FE, @bernhardoj's proposal looks good to me. 🎀👀🎀 C+ reviewed
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
The FE fix to add to the requestsToIgnoreLastUpdateID list make sense to me 👍🏼
📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
PR is ready
cc: @mkhutornyi
Triggered auto assignment to @kevinksullivan (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
I will be OOO tomorrow and next week, so I am reassigning this until I return on July 29. Thanks, @kevinksullivan!
Status: Waiting for PR to merge.
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.11-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-01. :confetti_ball:
For reference, here are some details about the assignees on this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.86-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4652683 Email or phone of affected tester (no customers): natnael.expensify+0a89fdndafadf@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Account should be closed
Actual Result:
Account is not closed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/b5f791f2-1678-4d12-ba37-8c7e46b66070
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kevinksullivan / @isabelastisser