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-04-25] [HOLD for payment 2024-04-17] [Guided Setup] [$250] Sign up - Welcome modal window on Abracadabra page #39837

Closed
1 of 6 tasks
lanitochka17 opened this issue Apr 8, 2024 · 42 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 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: 1.4.61-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/2616817
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open https://staging.new.expensify.com/
  2. Enter new email
  3. Copy magic link from received email
  4. Change link to stage
  5. Open link in a new tab
  6. Navigate to original tab

Expected Result:

The abracadabra page is displayed
On original tab Concierge chat opens. The 'Welcome to Expensify' modal window appears

Actual Result:

The abracadabra page is displayed. The 'Welcome to Expensify' modal window appears on abracadabra page.
On original tab the skeleton loader displayed

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

Bug6442285_1712582015558.bandicam_2024-04-08_16-05-31-752.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017ea247a272b092bf
  • Upwork Job ID: 1777419039357227008
  • Last Price Increase: 2024-04-08
  • Automatic offers:
    • hoangzinh | Contributor | 0
Issue OwnerCurrent Issue Owner: @miljakljajic
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

Copy link
Contributor

github-actions bot commented Apr 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.

@lanitochka17
Copy link
Author

@cead22 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

@cead22
Copy link
Contributor

cead22 commented Apr 8, 2024

I think it's a regression from #37733

@cead22 cead22 added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed Hourly KSv2 labels Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@melvin-bot melvin-bot bot changed the title Sign up - Welcome modal window on Abracadabra page [$250] Sign up - Welcome modal window on Abracadabra page Apr 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@cead22
Copy link
Contributor

cead22 commented Apr 8, 2024

Coming from @mountiny on slack

Could we make the issue external and see if any proposals come in? Given this PR is an important piece for wave-collect Release 1 I think we would prefer not to revert and ideally CP a fix (if we confirm the revert fixes the blocker, we can CP it once we are close to the deploy - that wont happen until tomorrow)

@cead22
Copy link
Contributor

cead22 commented Apr 8, 2024

cc @MaciejSWM @eVoloshchak

@filip-solecki
Copy link
Contributor

Hi @mountiny @cead22 , I've checked it quickly looks like some changes in Welcome.ts file causes this behavior, not sure what exactly

@mountiny mountiny self-assigned this Apr 8, 2024
@mountiny
Copy link
Contributor

mountiny commented Apr 8, 2024

I will try to help manage this in my morning if this wont be resolved by then.

@hoangzinh
Copy link
Contributor

Confirmed that revert #37733 would fix this issue. Checking root cause

@hoangzinh
Copy link
Contributor

Proposal

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

Sign up - Welcome modal window on Abracadabra page

What is the root cause of that problem?

I think it is because of this change

} else {
// If there is no matching central pane, we want to add the default one.
metainfo.isCentralPaneAndBottomTabMandatory = false;
routes.push(createCentralPaneNavigator({name: SCREENS.REPORT}));
}

=> It takes this condition is false when in the validate page => leads to show current onboarding modal in validate page in the next line

if (Boolean(currentRoute && currentRoute.name !== NAVIGATORS.BOTTOM_TAB_NAVIGATOR && currentRoute.name !== NAVIGATORS.CENTRAL_PANE_NAVIGATOR) || Session.isAnonymousUser()) {
return;
}

This is the log of currentRoute before above condition

Before After #37733
Screenshot 2024-04-09 at 09 20 02 Screenshot 2024-04-09 at 09 18 47

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

We probably revert this change

} else {
// If there is no matching central pane, we want to add the default one.
metainfo.isCentralPaneAndBottomTabMandatory = false;
routes.push(createCentralPaneNavigator({name: SCREENS.REPORT}));
}

@mananjadhav
Copy link
Collaborator

This change looks promising, but @hoangzinh @mountiny @adamgrzybowski do we know what would break if this block is reverted?

@adamgrzybowski
Copy link
Contributor

@mananjadhav Okay I did some investigation and I think the solution is somehow similar but not exactly the same.

The problem is that if should only handle pages that deeplinks to a bottom tab page.

if (bottomTabNavigator) {
// Routes
// - found bottom tab
// - matching central pane on desktop layout
if (isNarrowLayout) {
return {
adaptedState: state,
metainfo,
};
}
const routes = [...state.routes];
const matchingCentralPaneRoute = getMatchingCentralPaneRouteForState(state);
if (matchingCentralPaneRoute) {
routes.push(createCentralPaneNavigator(matchingCentralPaneRoute));
} else {
// If there is no matching central pane, we want to add the default one.
metainfo.isCentralPaneAndBottomTabMandatory = false;
routes.push(createCentralPaneNavigator({name: SCREENS.REPORT}));
}
return {
adaptedState: getRoutesWithIndex(routes),
metainfo,
};
}

Instead of reverting the lines mentioned above we need to modify the if if(bottomTabNavigator) to the if(bottomTabNavigator && bottomTabNavigator.state)

Additionally it would be great to add a comment before if, maybe something like

// We need to make sure that this if only handles states where we deeplink to the bottom tab directly
if(bottomTabNavigator && bottomTabNavigator.state) {

Copy link

melvin-bot bot commented Apr 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.

@mananjadhav
Copy link
Collaborator

I think your solution would solve for both @adamgrzybowski. But I haven't tested the solution yet.

@hoangzinh
Copy link
Contributor

hoangzinh commented Apr 9, 2024

@adamgrzybowski could you explain a little bit about why do you think adjusting the condition above is better than reverting the changes? I'm worried that it potentially cause other regression bugs

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Apr 18, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-04-17] [Guided Setup] [$250] Sign up - Welcome modal window on Abracadabra page [HOLD for payment 2024-04-25] [HOLD for payment 2024-04-17] [Guided Setup] [$250] Sign up - Welcome modal window on Abracadabra page Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 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 Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-04-25. 🎊

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

Copy link

melvin-bot bot commented Apr 18, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 24, 2024
@JmillsExpensify
Copy link

Whoops, removed that comment and holding off until the checklist is done and the payment date comes due.

@hoangzinh
Copy link
Contributor

It's a DB issue so probably we don't have a BugZero Checklist

@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2024
@mananjadhav
Copy link
Collaborator

@JmillsExpensify This was deployed on production and the original payout date was 2024-04-17. PR that caused the regression is #37733. It was already explained during the initial findings. We don't need a regression test here.

This is ready for payout.

Copy link

melvin-bot bot commented Apr 29, 2024

@cead22, @mananjadhav, @hoangzinh, @miljakljajic, @mountiny Huh... This is 4 days overdue. Who can take care of this?

@miljakljajic
Copy link
Contributor

@hoangzinh please accept the payment offer

@mananjadhav payment summary: owed 250 USD

@melvin-bot melvin-bot bot removed the Overdue label Apr 30, 2024
@hoangzinh
Copy link
Contributor

Accepted. Thanks @miljakljajic

@JmillsExpensify
Copy link

$250 approved for @mananjadhav

@melvin-bot melvin-bot bot added the Overdue label May 2, 2024
Copy link

melvin-bot bot commented May 3, 2024

@cead22, @mananjadhav, @hoangzinh, @miljakljajic, @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@mananjadhav
Copy link
Collaborator

I think we're good to close this one. @miljakljajic @mountiny

@hoangzinh
Copy link
Contributor

yup process payment then we're good to close this issue.

@cead22
Copy link
Contributor

cead22 commented May 6, 2024

Which payment is missing?

@miljakljajic
Copy link
Contributor

paid!

@hoangzinh
Copy link
Contributor

Hi @miljakljajic I'm just checking Upwork and it appears that my payment for this issue hasn't been completed yet. Can you check again? Thank you.

@miljakljajic
Copy link
Contributor

resolved

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
No open projects
Archived in project
Development

No branches or pull requests

10 participants