-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Copilot - Not here page opens on central pane when switching account on Subscription tab #48246
Comments
Triggered auto assignment to @mallenexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Subscription page shows not found when switching account. What is the root cause of that problem?When we switch account, we clear the onyx and calls open app. App/src/libs/actions/Delegate.ts Lines 74 to 82 in b9af3d1
Because the data is cleared, the subscription data is gone and thus not found page is shown. App/src/pages/settings/Subscription/SubscriptionSettingsPage.tsx Lines 30 to 32 in b9af3d1
What changes do you think we should make in order to solve the problem?We can show a loading indicator while the app is still loading.
But this isn't enough because clearing the onyx happened first before the open app request, so not found will still show briefly. We can optimistically set the IS_LOADING_APP when switching the account (connect & disconnect) knowing that we will call open app (set it to false when fails), App/src/libs/actions/Delegate.ts Lines 23 to 38 in b9af3d1
and also we need to preserve the key so it won't be cleared. App/src/libs/actions/Delegate.ts Line 21 in b9af3d1
Or, we can introduce a new onyx key called IS_SWITCHING_ACCOUNT.
|
Triggered auto assignment to @cristipaval ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Sorry, forgot to add |
This isn't a blocker, given that the Not found page shows briefly for a second only. Demoting |
@dangrous, I think you have knowledge of Copilot in NewDot? Would you mind taking over this one? |
yeah sure! |
I think the IS_LOADING_APP idea makes sense here, but we'll also want to consider this same situation in other places in the app. Is there a holistic solution we can use here? Also @rushatgabhane we'll probably want to take this on ourselves? |
Thanks a lot @dangrous! 🙇 |
@rushatgabhane can you provide feedback here so we can decide on the next steps? |
hmmm if the last visited page is subscription, and you login you'll get the same bug. I'll see how we should fix this in the mega fix |
Assigned to you @rushatgabhane , while we figure out what the next best steps are here. |
Wave control?? |
Checking on here, looks like it's part of control https://expensify.slack.com/archives/C06ML6X0W9L/p1725317232367829 |
@dangrous, @mallenexpensify, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Made you issue owner @rushatgabhane , I think next action is either on you or will be. Comment if you disagree |
This went to prod 9/19 - I believe we can close 9/26 - and no payment required I believe |
Closing this, @allgandalf I believe your review for the PR is being handled on another issue, but if that's NOT the case, please ping here and I can reopen/assign. |
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.26-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
Not here page will not open on central pane.
Actual Result:
Not here page opens on central pane when switching account on Subscription page.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6585878_1724884609221.20240829_063331.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: