Skip to content

[Due for payment 2025-05-30] [$250] Hybrid - The app log out the Gmail account after enter MC when adding copilot #60339

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

Open
2 of 8 tasks
nlemma opened this issue Apr 16, 2025 · 22 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@nlemma
Copy link

nlemma commented Apr 16, 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.28-13
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
If this was caught during regression testing, add the test name, ID and link from TestRail: #60128
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: iPhone 12 / iOS 17.7.2
App Component: User Settings

Action Performed:

  1. Log in to the Hybrid app with a brand new Gmail account
  2. Tap on the Join button
  3. Select any onboarding
  4. Tap on the Settings
  5. Tap on the Security
  6. Tap on the Add copilot
  7. Enter a valid account
  8. Select any option
  9. Tap on the Add copilot button
  10. Enter the MC

Expected Result:

The app returns to the Security page with the added copilot

Actual Result:

The app log out of the user

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6803495_1744795200991.Copilot.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021913224811608693711
  • Upwork Job ID: 1913224811608693711
  • Last Price Increase: 2025-05-02
Issue OwnerCurrent Issue Owner: @abekkala
@nlemma nlemma added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Apr 16, 2025
Copy link

melvin-bot bot commented Apr 16, 2025

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

@ashuvssut
Copy link
Contributor

Not reproducible on Android: Standalone or iOS: Standalone.
This issue likely exists only on Android: HybridApp and iOS: HybridApp, which we, as external contributors, cannot access or debug since we only have access to build standalone app

@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2025
@abekkala abekkala added the External Added to denote the issue can be worked on by a contributor label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

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

@melvin-bot melvin-bot bot changed the title Hybrid - The app log out the Gmail account after enter MC when adding copilot [$250] Hybrid - The app log out the Gmail account after enter MC when adding copilot Apr 18, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

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

@melvin-bot melvin-bot bot removed the Overdue label Apr 18, 2025
@huult
Copy link
Contributor

huult commented Apr 20, 2025

Do we have a plan to grant contributor access to the Hydrid app?

@melvin-bot melvin-bot bot added the Overdue label Apr 20, 2025
Copy link

melvin-bot bot commented Apr 22, 2025

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

Copy link

melvin-bot bot commented Apr 24, 2025

@akinwale Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Apr 25, 2025

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

@hoangzinh
Copy link
Contributor

hoangzinh commented Apr 26, 2025

Proposal

Please re-state the problem that we are trying to solve in this issue.

Hybrid - The app log out the Gmail account after enter MC when adding copilot

What is the root cause of that problem?

The API command AddDelegate returns 407 error when a non-validated account tries to add a new copilot account

Image

In Hybrid, App will try to renew the access token, but unsuccessfully, and thus redirect to sign-in page

Image

What changes do you think we should make in order to solve the problem?

We should require a new user account to validate their account first before they can add their Copilot account. Same with this PR #59454. We can introduce either HOC or Wrapper to be reusable.

Image

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

We can add unit tests for AddDelegatePage so that with non-validated account, it should show VerifyAccountPage first.

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link

melvin-bot bot commented Apr 28, 2025

@akinwale 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Apr 30, 2025

@akinwale @abekkala 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!

Copy link

melvin-bot bot commented Apr 30, 2025

@akinwale 10 days overdue. I'm getting more depressed than Marvin.

@abekkala
Copy link
Contributor

@akinwale can you review the proposal above please?

@akinwale
Copy link
Contributor

akinwale commented Apr 30, 2025

@hoangzinh's proposal works here.

🎀👀🎀 C+ reviewed.

@melvin-bot melvin-bot bot removed the Overdue label Apr 30, 2025
Copy link

melvin-bot bot commented Apr 30, 2025

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

Copy link

melvin-bot bot commented May 2, 2025

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

@melvin-bot melvin-bot bot added the Overdue label May 5, 2025
Copy link

melvin-bot bot commented May 6, 2025

@tylerkaraszewski Eep! 4 days overdue now. Issues have feelings too...

@abekkala
Copy link
Contributor

abekkala commented May 6, 2025

@tylerkaraszewski do you agree with the chosen proposal above?

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels May 7, 2025
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 11, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 23, 2025
@melvin-bot melvin-bot bot changed the title [$250] Hybrid - The app log out the Gmail account after enter MC when adding copilot [Due for payment 2025-05-30] [$250] Hybrid - The app log out the Gmail account after enter MC when adding copilot May 23, 2025
Copy link

melvin-bot bot commented May 23, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 23, 2025
Copy link

melvin-bot bot commented May 23, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.50-0 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-05-30. 🎊

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

  • @akinwale requires payment through NewDot Manual Requests
  • @hoangzinh requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented May 23, 2025

@akinwale / @hoangzinh @abekkala @akinwale / @hoangzinh 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]

@akinwale
Copy link
Contributor

BugZero Checklist:

Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [@akinwale] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment: N/A

  • [@akinwale] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion: N/A

  • [@akinwale] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Test:

  1. Launch Expensify.
  2. Sign in with a brand new account.
  3. Click or tap on the Join button.
  4. Select any of the onboarding options.
  5. Navigate to Settings > Security and select Add copilot.
  6. Verify that account validation is required before the copilot account can be added.
  7. Enter the correct magic code.
  8. Verify that the app successfully navigates to the add copilot screen.
  9. Provide a valid account.
  10. Select any option.
  11. Click or tap on the Add copilot button.
  12. Enter the correct magic code.
  13. Verify that the app navigates back to the Security page, and the added copilot is displayed.

Do we agree 👍 or 👎?

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests

7 participants