Skip to content
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

Account – Infinite loading spinner when closing an account #49532

Closed
2 of 6 tasks
IuliiaHerets opened this issue Sep 20, 2024 · 17 comments
Closed
2 of 6 tasks

Account – Infinite loading spinner when closing an account #49532

IuliiaHerets opened this issue Sep 20, 2024 · 17 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.0.39-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Login with an account
  2. Navigate to account settings > Security > Close account
  3. Enter the reason and default contact method > Close > Confirm

Expected Result:

User is signed out from the app and the account is closed successfully

Actual Result:

Infinite loading spinner is displayed in the RHP and the user is not logged out from the app

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6609849_1726830617234.2024-09-20_14_01_58.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 20, 2024
Copy link

melvin-bot bot commented Sep 20, 2024

Triggered auto assignment to @RachCHopkins (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.

@IuliiaHerets
Copy link
Author

@RachCHopkins 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

@abzokhattab
Copy link
Contributor

i think this could be a backend issue .. as the backend returns an empty response and doesn't properly remove the account, as i still see the old chats after closing the account and login in again

image

@Shahidullah-Muffakir
Copy link
Contributor

I think this is a regression from PR #48696.

The backend is successfully closing the account, and I even get the confirmation email that the account is deleted. But the problem is that our frontend isn’t receiving the Pusher event. Since the changes in the PR mentioned above affected the Pusher code, I believe that’s what’s causing the issue. I tested it by removing the changes from that PR, and it worked fine.

Pusher is important because it allows the frontend to get real-time updates from the backend. This means the frontend knows right away when something, like account deletion, happens without needing a manual refresh. If the frontend isn’t connected to Pusher properly, it won’t get these updates, which is likely why the account still appears active on the frontend, even though the backend processed the deletion.

@daledah
Copy link
Contributor

daledah commented Sep 23, 2024

I believe #48696 is not the cause of this bug, as the changes in this PR only applies to Expensify Guide member. But I'll take a closer look regardless and will open a follow-up PR as soon as possible if this is actually a regression.

@daledah
Copy link
Contributor

daledah commented Sep 23, 2024

This bug is reproduced in production:

Screen.Recording.2024-09-23.at.22.53.41.mov

Copy link

melvin-bot bot commented Sep 23, 2024

@RachCHopkins Whoops! This issue is 2 days overdue. Let's get this updated quick!

@MonilBhavsar MonilBhavsar self-assigned this Sep 23, 2024
@melvin-bot melvin-bot bot removed the Overdue label Sep 23, 2024
@MonilBhavsar
Copy link
Contributor

Thanks for confirming @daledah!

@MonilBhavsar
Copy link
Contributor

@jjcoffee were you looking at this bug? Do you mind if I assign you as a C+?

@situchan
Copy link
Contributor

I tested it by removing the changes from that PR, and it worked fine.

If this is true, I would be C+ as regression. Not tested yet though.

@MonilBhavsar
Copy link
Contributor

I agree the PR could not be the reason as we're only subscribing guides to specific channel and since the user experiencing the issue is not a guide.

@MonilBhavsar
Copy link
Contributor

I had a look at the server side code and we're only returning pusher response for CloseAccount API command. I think we should return the API response too for the user taking an action and that should probably fix this issue. Will make a change and see if we still are able to reproduce the issue

@RachCHopkins
Copy link
Contributor

@MonilBhavsar I'll hold off on adding any labels here. Looks like it's potentially Internal?

@MonilBhavsar MonilBhavsar added the Internal Requires API changes or must be handled by Expensify staff label Sep 24, 2024
@MonilBhavsar
Copy link
Contributor

Yes, this is internal issue

@MonilBhavsar
Copy link
Contributor

Got PR in review!

@MonilBhavsar MonilBhavsar added the Reviewing Has a PR in review label Sep 24, 2024
@RachCHopkins
Copy link
Contributor

Are there any steps left here @MonilBhavsar?

@MonilBhavsar
Copy link
Contributor

MonilBhavsar commented Sep 30, 2024

Thanks for the comment. No, this is fixed! We can close this as it was all internal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants