-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[$250] Sign in - Account settings long loading if navigate via public room link & login as new account #48715
Comments
Triggered auto assignment to @bfitzexpensify ( |
@bfitzexpensify 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 |
Checking in on the other issue here |
I am heading out of office until September 21st, so assigning a buddy to watch over this in my absence. Current status: confirming if the other PR caused this |
Current assignee @bfitzexpensify is eligible for the Bug assigner, not assigning anyone new. |
Triggered auto assignment to @VictoriaExpensify ( |
This doesn't appear to be related to #47806 - I can repro with the changes from there reverted. It's probably a BE issue as there are no |
@bfitzexpensify, @VictoriaExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Thanks for confirming @jjcoffee . I'm going to move this to internal since this sounds like a BE issue |
Not overdue |
Is this bug specific to the public rooms flow and on Android native only? If so, that was a project in #vip-vsb, and I think @jasperhuangg might be good to offer insight into that. |
@jjcoffee The cc @marcochavezf IIRC you implemented this flow, it seems like we're not calling ReconnectApp when the user is signed in from the public room, which I think could be preventing us from loading their personal details. Under normal circumstances when we sign up a new user we do call it: So I believe this issue lies in the front-end and can be worked on externally, I think we just need to figure out why we're not calling |
Job added to Upwork: https://www.upwork.com/jobs/~021836652520479378795 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
@bfitzexpensify @VictoriaExpensify @thesahindia this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@marcochavezf - have you got any insights to add to @jasperhuangg comment here? |
Not overdue |
I'm back from OOO and can take this back over - thanks for looking after it @VictoriaExpensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Slow loading times when accessing through a public room link and logging in as a new account. What is the root cause of that problem?A deadlock occurs when executing OpenApp while OpenReport is triggered. Clicking the Join button triggers the openReport first. App/src/pages/home/report/ReportActionsView.tsx Lines 293 to 299 in b1720c7
Then openApp App/src/pages/signin/SignInModal.tsx Lines 30 to 34 in b1720c7
During openReport processing, communication gaps between client and server may cause the queue to pause. App/src/libs/Network/SequentialQueue.ts Lines 90 to 93 in b1720c7
When that occurs, we are unable to process or clear the queue. What changes do you think we should make in order to solve the problem?I think Clear any persisted request in src/pages/signin/SignInModal.tsx import * as PersistedRequests from '@libs/actions/PersistedRequests';
useEffect(() => {
const isAnonymousUser = session?.authTokenType === CONST.AUTH_TOKEN_TYPES.ANONYMOUS;
if (!isAnonymousUser) {
// Signing in RHP is only for anonymous users
Navigation.isNavigationReady().then(() => Navigation.dismissModal());
PersistedRequests.clear();
App.openApp();
}
}, [session?.authTokenType]); What alternative solutions did you explore? (Optional)If we don't want to clear any pending requests, we can wait for the src/pages/signin/SignInModal.tsx import { waitForIdle } from '@libs/Network/SequentialQueue';
useEffect(() => {
const isAnonymousUser = session?.authTokenType === CONST.AUTH_TOKEN_TYPES.ANONYMOUS;
if (!isAnonymousUser) {
// Signing in RHP is only for anonymous users
Navigation.isNavigationReady().then(() => Navigation.dismissModal());
waitForIdle().then(() => {
App.openApp();
})
}
}, [session?.authTokenType]); |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@wildan-m could you please post a video doing the same reproduction steps with your fix? It seems like your solution is different from what was imagined by @jasperhuangg with |
If |
I'd still like to see the same reproduction steps with your fix, to see it in action. cc @aldo-expensify was there a particular reason you wanted to trigger App/src/pages/home/report/ReportActionsView.tsx Lines 293 to 299 in b1720c7
|
@lakchote My main solution used to work well, but now it's not functioning properly. The new user is not automatically joining, possibly due to recent changes. My alternative solution still working properly, force redirection to concierge seems expected for a new user(?) Kapture.2024-09-30.at.16.20.15.mp4 |
@wildan-m thanks for checking it again.
That seems valid to me too as it'll introduce the user to the platform. What do you think @trjExpensify? |
Hm, I'm not sure. I don't think I agree with that. If you signed up from a public room, you would expect to drop back into the public room to continue what you were doing (like now being able to comment). |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.30-9
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): ponikarchuks+106924@gmail.com
Issue reported by: Applause - Internal Team
Issue found when executing PR #48144
Action Performed:
Expected Result:
Account settings loads fine
Actual Result:
Account settings long loading
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6595301_1725625415082.A_clear_anonymous_user_records_after_login.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: