Skip to content

[Due for payment 2025-03-24] [$250] Account - Account data not loads when Signed In with Google #57744

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

Closed
1 of 8 tasks
mitarachim opened this issue Mar 4, 2025 · 25 comments
Closed
1 of 8 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@mitarachim
Copy link

mitarachim commented Mar 4, 2025

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.1.8-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5682250&group_by=cases:section_id&group_id=229043&group_order=asc
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Desktop (Mac/Intel)
App Component: Other

Action Performed:

Precondition: user should be signed out in Web and Desktop

  1. Open app
  2. Click on Sign In with google button
  3. Select google account
  4. Click on Open In desktop button on pop-up
  5. Wait for a while
  6. Kill the app
  7. Reopen the app

Expected Result:

User should be navigated back to Desktop app and account data should be loaded

Actual Result:

User navigated to Desktop app, but account data does not loads

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6760456_1741048926435.Screen_Recording_2025-03-04_at_02.35.59.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021898003296165668899
  • Upwork Job ID: 1898003296165668899
  • Last Price Increase: 2025-03-24
Issue OwnerCurrent Issue Owner: @dylanexpensify
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

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

@melvin-bot melvin-bot bot added the Overdue label Mar 7, 2025
@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Mar 7, 2025
@melvin-bot melvin-bot bot changed the title Account - Account data not loads when Signed In with Google [$250] Account - Account data not loads when Signed In with Google Mar 7, 2025
Copy link

melvin-bot bot commented Mar 7, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021898003296165668899

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 7, 2025
Copy link

melvin-bot bot commented Mar 7, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 (External)

@melvin-bot melvin-bot bot removed the Overdue label Mar 7, 2025
@hungvu193
Copy link
Contributor

I can reproduce this one. Looking for proposals!

@rezkiy37
Copy link
Contributor

Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.

@melvin-bot melvin-bot bot added the Overdue label Mar 10, 2025
@rezkiy37
Copy link
Contributor

There was a similar bug I worked on before - #41246.

@rezkiy37
Copy link
Contributor

I've tested and can confirm that the bug is replicable. Additionally, the root cause is the same as in #41246. Apple login also does not work properly.

  1. The user signs in with Google or Apple.
  2. The app requests SignInWithShortLivedAuthToken.
  3. It responds with lastUpdateID: 4459016660.
  4. The app requests OpenApp.
  5. It responds with lastUpdateID: 4459016660.
  6. Both responses contain the same ID.

There is a condition in how the app checks whether it should apply new coming onyx data. It compares the current lastUpdateID with the last one.

if (lastUpdateID && lastUpdateIDAppliedToClient && Number(lastUpdateID) <= lastUpdateIDAppliedToClient) {

As we can see, the app omits onyxData if the IDs are the same. The app does not take Onyx data into account.

Details

Screen.Recording.2025-03-10.at.16.58.07.mp4
Image Image

Definitely, we need an internal engineer here.

@hungvu193
Copy link
Contributor

hungvu193 commented Mar 10, 2025

@rezkiy37 There's another issue with login google on Desktop, not sure if you're able to reproduce it or just me

Screen.Recording.2025-03-11.at.00.43.04.mov

return currentParams.reportID === newParams.reportID;

@melvin-bot melvin-bot bot removed the Overdue label Mar 10, 2025
@rezkiy37
Copy link
Contributor

rezkiy37 commented Mar 11, 2025

I just reproduced the bug with the reportID on dev.

Videos

Image

Test.DEV.mp4
Test.3.mp4

@rezkiy37
Copy link
Contributor

rezkiy37 commented Mar 11, 2025

Regarding this last bug, I can confirm it is a valid issue. It happens when the web redirects to the desktop by a URL (e.g., https://dev.new.expensify.com:8082/transition?exitTo=%2Fr&email=mykhailo.kravchenko%40callstack.com&shortLivedAuthToken=1D...). There is a parameter - exitTo. It is a highly important value for this flow. However, the app expects a reportID but not just /r.

return currentParams.reportID === newParams.reportID;

After investigations, I would say it is a front-end issue. I intend to utilize the optional chaining operator in the condition. It is not critical for the user to open the app by a deep-link for SSO authorization without a reportID.

cc @hungvu193

@hungvu193
Copy link
Contributor

hungvu193 commented Mar 11, 2025

Cool. I think we should fix it here as well

@dylanexpensify
Copy link
Contributor

Nice, thank you!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 12, 2025
@rezkiy37
Copy link
Contributor

I've opened #58278 for review.
cc @hungvu193

Copy link

melvin-bot bot commented Mar 12, 2025

Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@hungvu193
Copy link
Contributor

@youssef-lr FYI, there are 2 issues here:

  1. Crash on Dev (error console on Staging) when logging in with Google Desktop - We addressed it here
  2. lastUpdateID returns the same for 2 API requests and Onyx data was omitted by the condition here:
    if (lastUpdateID && lastUpdateIDAppliedToClient && Number(lastUpdateID) <= lastUpdateIDAppliedToClient) {

    @rezkiy37 already had a well-explained here

For the second issue, I believe we should fix it from our BE.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 17, 2025
@melvin-bot melvin-bot bot changed the title [$250] Account - Account data not loads when Signed In with Google [Due for payment 2025-03-24] [$250] Account - Account data not loads when Signed In with Google Mar 17, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 17, 2025
Copy link

melvin-bot bot commented Mar 17, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 17, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.13-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-03-24. 🎊

For reference, here are some details about the assignees on this issue:

  • @hungvu193 requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Mar 17, 2025

@hungvu193 @dylanexpensify @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Copy link

melvin-bot bot commented Mar 17, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@rezkiy37
Copy link
Contributor

We need an internal engineer here - #57744 (comment).

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 24, 2025
Copy link

melvin-bot bot commented Mar 24, 2025

Payment Summary

Upwork Job

BugZero Checklist (@dylanexpensify)

  • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1898003296165668899/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

Copy link

melvin-bot bot commented Mar 24, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@hungvu193
Copy link
Contributor

I think the BE issue is now resolved, we can login with google without any issues.

Screen.Recording.2025-03-25.at.15.40.57.mov

@dylanexpensify
Copy link
Contributor

Payment summary:

Contributor+: @hungvu193 $250 via NewDot

Please apply/request!

@garrettmknight
Copy link
Contributor

$250 approved for @hungvu193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants