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-08-19] [$250] Sign in – Onboarding modal is missing in new tab #47054

Closed
3 of 6 tasks
IuliiaHerets opened this issue Aug 8, 2024 · 45 comments
Closed
3 of 6 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 8, 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: v.9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): ponikarchuks+98824@gmail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. In Sign in page enter new Gmail account
  3. When Onboarding modal appears open new tab and paste https://staging.new.expensify.com/

Expected Result:

Onboarding modal is present in new tab

Actual Result:

Onboarding modal is missing in new tab

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6565266_1723093480769.Onboarding_modal.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f33db55519f8fc02
  • Upwork Job ID: 1821535504288913507
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • ishpaul777 | Contributor | 103468942
Issue OwnerCurrent Issue Owner: @trjExpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to @NikkiWines (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 8, 2024
Copy link
Contributor

github-actions bot commented Aug 8, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #vip-vsb

@trjExpensify
Copy link
Contributor

So strange. Can't reproduce with private domain, can reproduce with public domain:

2024-08-08_14-11-43.mp4

@trjExpensify trjExpensify added the External Added to denote the issue can be worked on by a contributor label Aug 8, 2024
@melvin-bot melvin-bot bot changed the title Sign in – Onboarding modal is missing in new tab [$250] Sign in – Onboarding modal is missing in new tab Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
@trjExpensify
Copy link
Contributor

Let's get some eyes on it.

Copy link

melvin-bot bot commented Aug 8, 2024

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

@NikkiWines
Copy link
Contributor

Might be related to #46750 since it changes when/why we show the onboarding modal, will try to reproduce locally now

@dominictb
Copy link
Contributor

Proposal

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

Onboarding modal is missing in new tab

What is the root cause of that problem?

When we open a new tab, the isOnboardingFlowStatusKnownPromise promise reset after we call isOnboardingFlowCompleted here

isOnboardingFlowStatusKnownPromise = new Promise<OnboardingData>((resolve) => {
resolveOnboardingFlowStatus = resolve;
});

Screenshot 2024-08-08 at 20 58 38

Then it will never be triggered to open the the onboarding modal.

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

We should only use resolveOnboardingFlowStatus to resolve isOnboardingFlowStatusKnownPromise promise when the onboarding is ready to use.

let resolveOnboardingFlowStatus: () => void;
let isOnboardingFlowStatusKnownPromise = new Promise<void>((resolve) => {
    resolveOnboardingFlowStatus = resolve;
});

We will create a global variable onboarding to store the onboarding data

let onboarding: Onboarding | undefined | [];
Onyx.connect({
    key: ONYXKEYS.NVP_ONBOARDING,
    callback: (value) => {
        if (value === undefined) {
            return;
        }
        if (onboarding === undefined) {
            onboarding = value;
            resolveOnboardingFlowStatus();
        } else {
            onboarding = value;
        }
    },
});

and then use it here

isOnboardingFlowStatusKnownPromise.then(() => {

What alternative solutions did you explore? (Optional)

NA

Result

Screen.Recording.2024-08-08.at.21.25.43.mov

@dominictb
Copy link
Contributor

@NikkiWines I can raise a PR to fix the issue ASAP.

@jayeshmangwani
Copy link
Contributor

When we open a new tab, the isOnboardingFlowStatusKnownPromise promise reset after we call isOnboardingFlowCompleted here

@dominictb I don't think this is the root cause. The issue is happening on staging and not in production, so any recent PR may have caused this problem.

@dominictb
Copy link
Contributor

dominictb commented Aug 8, 2024

@jayeshmangwani We resolved the promise and then reset it here. Then if isOnboardingFlowCompleted is called after the promise resets, it never triggers because the onboarding in Onyx doesn't change again.

resolveOnboardingFlowStatus(value);
isOnboardingFlowStatusKnownPromise = new Promise<OnboardingData>((resolve) => {
resolveOnboardingFlowStatus = resolve;

@fedirjh
Copy link
Contributor

fedirjh commented Aug 8, 2024

I don't think this is the root cause. The issue is happening on staging and not in production, so any recent PR may have caused this problem.

@jayeshmangwani The changes that @dominictb pointed out in his proposal are recently added in this PR, which is deployed to staging recently :

Copy link

melvin-bot bot commented Aug 9, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

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

melvin-bot bot commented Aug 9, 2024

📣 @ishpaul777 🎉 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 📖

@NikkiWines
Copy link
Contributor

@ishpaul777 reviewed, adding assingment

@marcaaron
Copy link
Contributor

Fixed with a CP

@marcaaron marcaaron removed the DeployBlockerCash This issue or pull request should block deployment label Aug 9, 2024
@dominictb
Copy link
Contributor

@NikkiWines Should I eligible for compenstation since this PR uses my proposal here?. The only difference is it creates a new function to resolve the onboarding promise.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 12, 2024
@melvin-bot melvin-bot bot changed the title [$250] Sign in – Onboarding modal is missing in new tab [HOLD for payment 2024-08-19] [$250] Sign in – Onboarding modal is missing in new tab Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 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 Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

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

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

Copy link

melvin-bot bot commented Aug 12, 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:

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@ishpaul777] 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:
  • [@ishpaul777] 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:
  • [@ishpaul777] Determine if we should create a regression test for this bug.
  • [@ishpaul777] 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.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@NikkiWines
Copy link
Contributor

NikkiWines commented Aug 14, 2024

@NikkiWines Should I eligible for compenstation since this #47097 uses my proposal #47054 (comment)?. The only difference is it creates a new function to resolve the onboarding promise.

@dominictb Yes, since the core logic used in the fix is the same, I think some compensation should be provided as the issue had been marked as external and help wanted at the time of your proposal being made. @trjExpensify what do you think?

@trjExpensify
Copy link
Contributor

I think we can do a partial payment agreed, so when this comes around, I'll be sure to send an offer for $125.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 18, 2024
@ishpaul777
Copy link
Contributor

Ready for payment 🎉

@ishpaul777
Copy link
Contributor

gentle bump @trjExpensify : )

Copy link

melvin-bot bot commented Aug 21, 2024

@trjExpensify, @NikkiWines, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@trjExpensify
Copy link
Contributor

Yup, I've been OoO. Payment summary as follows:

@ishpaul777 paid, @dominictb I've reached out to you for your Upwork profile.

@melvin-bot melvin-bot bot removed the Overdue label Aug 23, 2024
@trjExpensify
Copy link
Contributor

@dominictb offer now sent.

@dominictb
Copy link
Contributor

@trjExpensify Offer accepted 🙏

@trjExpensify
Copy link
Contributor

Paid, closing!

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants