-
Notifications
You must be signed in to change notification settings - Fork 3k
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
IOU - All the cancelled request preview shows loading spinner for reopened accounts - reported by @Tushu17 #7420
Comments
Triggered auto assignment to @stitesExpensify ( |
Triggered auto assignment to @MitchExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Current assignee @stitesExpensify is eligible for the Exported assigner, not assigning anyone new. |
Could you attach reproduce video again? |
@railway17 are you able to replicate this on production? |
@rushatgabhane I've contributed to 1 issue in Expensify, but not sure I can test in prod or not.... Just tried the below steps: |
@railway17 Thanks for the details! For reopening the account, you first need to close it. To close: settings -> security -> close account. |
20220129120409526.mp4@rushatgabhane |
@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 |
@railway17 main has close account feature. you might need to sync your fork if you're testing on it 😄 |
@rushatgabhane The current action result is that old money is reset to 0 when login and requesting another 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.
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'm also confused about the bug...
Are we canceling the money request and then closing the account or closing an account that has active requests? |
Cancel and then close the account, although I would guess that other cases also exist |
Here's what I am seeing so far... The IOUPreview component tries to fetch the report in the URL or from the action but the API returns 666 "no longer exists". The other participant has no issues viewing the UI (assuming they retain access to the report, but the other user who closed their account does not). Maybe dumb question... but can we just reshare these IOU reports when someone reopens their account? Thinking we can just find all IOU reports where they are the |
Maybe I'm not getting how this feature works. I can't ever remember. |
Oh actually it would just be if they are the |
cc @Julesssss @mountiny as I think you guys are probably pretty familiar with the IOU flows and can please tell me if you see any obvious issues with this approach? Problem:
Solution:
|
actually, that solution appears to break all new IOU transactions. 😕 |
Just noting that if you do not cancel the request but close and reopen you will still get a loading spinner as the payer though the requester will see that they are owed: Creating a new request as the user who did not close their account works But will lead to them seeing two report actions What's also weird is that the previous action "Details" says that the other user paid (but they didn't) And the new preview for the new transaction looks OK This feature seems very broken when an account gets closed - did we just not think about what would happen at all? This might be too big of an issue for me to focus on at the moment, but will wait for input from others in case I am wrong and there's an obvious solution. |
If we canceled the IOU request before unsharing the report, would that solve it? |
ah sorry, can you clarify what you think that would solve? I'm not sure what the "it" in your question refers to. |
Sorry, what I meant was that if we cancel the IOU request before closing the account, then theoretically there is nothing that needs to be reshared when the account is re-opened since the IOU no longer exists. Perhaps that is overly simplified though. |
Got it, the loading spinners will still happen even if you manually cancel the request before closing your account. We could cancel the IOU transaction automatically when someone closes their account - but they would still lose access to the IOU report itself (so the UI will keep showing the loading spinner in both scenarios). I still can't really think of why someone would need to have an IOU report unshared from them when they close their account. |
Looks like when someone closes their account the "active" IOU report's state and status go from:
to
AFAICT iou reports should not ever have a state of 0 and are always either It is getting rejected like @stitesExpensify found above. Ok so, alternative idea...
|
Tested the above solution out and it works pretty good here are some drafts: https://github.com/Expensify/Web-Expensify/pull/35453 |
Nice! |
Still working on this, but it's not a daily priority for me since closing accounts is an edge case. |
+1. I think weekly is appropriate. |
Related Auth PR has been merged. Wrote some integration tests for the Web-E PR (still on HOLD waiting for Auth deploy). |
Not sure why I'm subscribed to this issue haha, but just noticed we need to create an Upwork job for the reporting bonus. |
@Tushu17 can you please apply here for the reporting bonus: https://www.upwork.com/jobs/~0102f107207d43a2df |
@puneetlath Ok applied, Thanks. |
Great, paid! |
Looks like we're done here! |
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:
Bug5423926_Canceled_2601.mp4
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: