Closed kavimuru closed 1 year ago
Triggered auto assignment to @stitesExpensify (Engineering
), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @MitchExpensify (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (Exported
)
Current assignee @stitesExpensify is eligible for the Exported assigner, not assigning anyone new.
Could you attach reproduce video again?
I can't replicate on my side. I tested the latest main
branch.
@railway17 are you able to replicate this on production?
@rushatgabhane I didn't test in production. But is it possible to test in product with my personal account?
I've contributed to 1 issue in Expensify, but not sure I can test in prod or not....
In the issue replication, I am not clear what reopened account
is.
Just tried the below steps: login, request, cancel, logout, re-login, open direct chat. But can't replicate. My replication flow is correct?
@railway17 Thanks for the details! For reopening the account, you first need to close it.
To close: settings -> security -> close account. To reopen: just sign in to the same account
@rushatgabhane I can't see any option to close the account.
@railway17 can you try it in production (new.expensify.com) I'm not sure why you can't see close account page as it isn't hidden in any beta.
@rushatgabhane
Ok, I can see and replicate it in production.
Looks like latest main is not same with current prod.
I can't see Close Account
in en.js
Let me try to find which commit is current prod
@railway17 main has close account feature. you might need to sync your fork if you're testing on it 😄
@rushatgabhane
I have another question.
Let's assume that this issue is fixed and there was $500 requested money
before closing the account.
When login reopened account, this amount should be kept?
The current action result is that old money is reset to 0 when login and requesting another money.
But Expected result
doesn't mention about keeping old total requested money
FYI @railway17 @rushatgabhane is OOO at the moment, i'm sure he'll respond when he's back
@railway17 woah, sorry for being so late to respond.
Let's assume that this issue is fixed and there was $500 requested money before closing the account. When login reopened account, this amount should be kept?
No, the amount shouldn't be kept because all expense data is deleted by expensify (as per the email received on deletion).
@stitesExpensify I think this is an issue that should be fixed on the backend.
I think this is an issue that should be fixed on the backend.
@stitesExpensify gentle bump ^^
Sorry for the late response. Just to make sure I'm following @rushatgabhane, are you suggesting that we should just delete all pending money requests at the time an account is closed?
@stitesExpensify really sorry for the late reply, I missed this one.
My assumption: when an account is closed, all IOU requests (cancelled or not cancelled) are deleted on the server side. Which explains why the IOU preview returns 404 for a reopened account.
This image backs my assumption.
Only the report (chat) history is preserved for a deleted account.
One solution could be to remove IOU previews from all reports of the deleted account, which ofc should be done on the backend. I hope I'm making sense.
I think #7435 and this is the same issue so Ig we should close #7435. Quick question:- #7435 was reported in slack before this issue but took time to get logged so is this eligible for reporting bonus (https://expensify.slack.com/archives/C01GTK53T8Q/p1642285631499100) cc: @stitesExpensify
Hmm @Tushu17 is this the same issue? In your case it looks like you can still see the IOU, whereas here it is an endless spinner. Is it just because you hadn't refreshed maybe?
@stitesExpensify Yeah it's same but there is a little difference about loading spinner. To repro loading spinner case, You need to delete your account and have to reopen it. But when the other user request money and deletes his account loading spinner doesn't show up. the similar thing between both is that in both you get error message when trying to see the details and I guess solving one will also solve the other.
Gotcha. In that case yes, I think that you would qualify for the reporting bonus
I also agree with @rushatgabhane that this is an internal issue, so I'm removing the help wanted and external labels
Going to remove my assignment in that case too @stitesExpensify
No update due to OOO
Started a slack conversation about this issue, apparently the requests should not be deleted when you delete the account so this is actually a different bug than we originally thought. Looking into it more this week
Well, it is the expected behavior for oldDot, but causes problems in newDot, so maybe we need to change it, because reports in newDot are never in closed state and processing is a totally valid "final" state for a report.
I think if you delete your account with a money request still pending then it makes total sense that we would retract that request. Am I missing a different case?
If we do that, what happens to the workspace chat and all the things pointing to the now non existent reports? Also, what happens for credit card requests that will never be deleted and will never be approved (ie: their final state would be processing)?
I was thinking that we should make a new report action that shows the request is "cancelled" and then we can show it in the UI.
what happens for credit card requests that will never be deleted and will never be approved
I don't know what that is tbh. What is a credit card request and how is it different from a normal "Request money"?
A credit card request is a transaction done with the expensify credit card. Since those don't need to be paid and for now there are no approvals, the state of the report when they are done with them will still be processing
.
Gotcha. So should we just not retract/close any processing IOU reports then?
I don't know.
No update
Fixing some labels are the GH history indicates this is an Internal
issue.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported
)
Current assignee @stitesExpensify is eligible for the Exported assigner, not assigning anyone new.
Ugh... sorry I removed that Exported
label by mistake and re-added it. We should keep the exported label so it's clear that we can pay the reporting bonus to @Tushu17 if it's fixed.
Unassigned as this is internal.
Looking into this today
I got distracted with this last week. Will be looking at it tomorrow
A Contributor Manager will be assigned to issue payment via Upwork if we deploy an associated Pull Request to production. Per Contributing.md.
I made a test PR that doesn't retract IOU reports that are processing, and that fixed the issue but IDK if that's really the best solution. Have been working on offline first so this is not a priority for me at the moment.
Still not a priority at the moment
I still haven't worked on this. Making it a monthly since it's an edge case involving closing and re-opening an account
No update, focused on n7
No update, focused on n7
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Precondition: Closed an account then reopen again
Expected Result:
All canceled request money should appear without any issues
Actual Result:
All canceled request money shows spinner.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.33-2 Reproducible in staging?: Yes Reproducible in production?: Yes Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/151190208-15448c72-dbbc-4a8a-8925-f78b3d760c7b.mp4
Expensify/Expensify Issue URL: Issue reported by: Slack conversation:
View all open jobs on GitHub