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

[HOLD for payment 2024-10-16] [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account #48475

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 3, 2024 · 17 comments
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

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 3, 2024

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.28-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4916548
Email or phone of affected tester (no customers): ponikarchuks+102924@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Sign out
  3. Navigate via deeplink https://staging.new.expensify.com/concierge
  4. Sign in with a new Gmail account

Expected Result:

Concierge chat opens

Actual Result:

LHN opens

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6591574_1725358874350.Concierge_and.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01172b48a244279bbf
  • Upwork Job ID: 1831292649888862736
  • Last Price Increase: 2024-09-04
  • Automatic offers:
    • CyberAndrii | Contributor | 103916722
Issue OwnerCurrent Issue Owner: @allroundexperts / @sonialiap
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

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

@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

@melvin-bot melvin-bot bot changed the title Sign in –Concierge chat not opens when navigate via deeplink and log in with new account [$250] Sign in –Concierge chat not opens when navigate via deeplink and log in with new account Sep 4, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

@sonialiap sonialiap changed the title [$250] Sign in –Concierge chat not opens when navigate via deeplink and log in with new account [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account Sep 4, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 7, 2024
@CyberAndrii
Copy link
Contributor

CyberAndrii commented Sep 8, 2024

Proposal

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

Deeplinks do not work when signing in with a new account

What is the root cause of that problem?

This is a regression from #47829. The PR added a check to stop listening for updates after ONYXKEYS.NVP_ONBOARDING data is set.

App/src/libs/actions/Report.ts

Lines 2665 to 2672 in aaa60b9

const connection = Onyx.connect({
key: ONYXKEYS.NVP_ONBOARDING,
callback: (onboarding) => {
if (onboarding) {
// Once the onboarding data is available, we want to disconnect the connection
// so it won't trigger the deeplink again every time the data is changed, for example, when relogin.
Onyx.disconnect(connection);
}

Later, the code determines whether to navigate to the deeplink immediately or wait until onboarding is completed. The decision is based on the onboarding.hasCompletedGuidedSetupFlow property.

The issue is that onboarding.hasCompletedGuidedSetupFlow is initially set to false, which means Onyx.disconnect(connection); will be called before it changes to true.

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

We should call Onyx.disconnect only after onboarding is completed.

+                    const hasCompletedGuidedSetupFlow = hasCompletedGuidedSetupFlowSelector(onboarding);
+
-                    if (onboarding) {
+                    if (hasCompletedGuidedSetupFlow) {

Copy link

melvin-bot bot commented Sep 9, 2024

@sonialiap, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@sonialiap
Copy link
Contributor

@allroundexperts what do you think of the above proposal?

@allroundexperts
Copy link
Contributor

@CyberAndrii's proposal looks good to me. It has the correct RCA and the solution seems to work as well.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Sep 10, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

📣 @CyberAndrii 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 12, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Sep 21, 2024
@puneetlath puneetlath changed the title [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account [HOLD for payment 2024-10-04][$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account Oct 6, 2024
@puneetlath puneetlath changed the title [HOLD for payment 2024-10-04][$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account Oct 6, 2024
@puneetlath
Copy link
Contributor

@allroundexperts @CyberAndrii what's the status of this?

@allroundexperts
Copy link
Contributor

Hm... Just looking at this now. I think this slipped from my list of issues. Reviewing now.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 9, 2024
@melvin-bot melvin-bot bot changed the title [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account [HOLD for payment 2024-10-16] [$250] Sign in – Concierge chat does not open via deeplink when logging in with a new account Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.46-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 2024-10-16. 🎊

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

Copy link

melvin-bot bot commented Oct 9, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] 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:
  • [@allroundexperts] A discussion in #expensify-bugs 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:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@sonialiap
Copy link
Contributor

Payment summary:

@allroundexperts
Copy link
Contributor

Checklist

  1. Fix user is navigated to previous deeplink when re-login #47829
  2. https://github.com/Expensify/App/pull/47829/files#r1807954482
  3. N/A
  4. A regression test would be good to have here.

Regression test

  1. Make sure that you're logged out of any existing account.
  2. Navigate via deeplink to /concierge page
  3. Sign in with a new Gmail account

Verify that Concierge chat opens

Do we 👍 or 👎 ?

@sonialiap
Copy link
Contributor

Thanks!

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
Projects
No open projects
Status: No status
Development

No branches or pull requests

5 participants