App
App copied to clipboard
IOU - All the cancelled request preview shows loading spinner for reopened accounts - reported by @Tushu17
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Precondition: Closed an account then reopen again
- Launch the app
- Login with reopened account credentials
- Open Direct message with account who I canceled request money.
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?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
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:
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
https://user-images.githubusercontent.com/29966461/151646629-762047e7-bd76-4af8-9763-76702acf3aa4.mp4
@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.
Solution
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.
https://user-images.githubusercontent.com/29673073/154583699-52fe267d-1151-4020-af8f-ea980ff8d2bf.mp4
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
Okay so when you close an account we retract all of your processing reports here and then when we get to auth we delete all open, non-processing reports here. To me this seems like the expected behavior. Is that not the case @iwiznia ?
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.