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-09-18] [$50] Expensify Card - Expensify Card page loads infinitely #48835

Closed
3 of 6 tasks
IuliiaHerets opened this issue Sep 9, 2024 · 46 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 Sep 9, 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.31-5
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: #48632
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Expensify Card.

Expected Result:

Expensify Card page will not load infinitely.

Actual Result:

Expensify Card page loads infinitely, unless user clicks on the same tab or refresh the page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6598003_1725915441991.s.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021833256019789096800
  • Upwork Job ID: 1833256019789096800
  • Last Price Increase: 2024-09-10
  • Automatic offers:
    • DylanDylann | Reviewer | 103894214
    • allgandalf | Contributor | 103894216
Issue OwnerCurrent Issue Owner: @rushatgabhane
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 9, 2024
Copy link

melvin-bot bot commented Sep 9, 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.

Copy link

melvin-bot bot commented Sep 9, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 9, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 9, 2024
Copy link
Contributor

github-actions bot commented Sep 9, 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.

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

melvin-bot bot commented Sep 9, 2024

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

@melvin-bot melvin-bot bot changed the title Expensify Card - Expensify Card page loads infinitely [$250] Expensify Card - Expensify Card page loads infinitely Sep 9, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 9, 2024
Copy link

melvin-bot bot commented Sep 9, 2024

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

@Nodebrute
Copy link
Contributor

Nodebrute commented Sep 9, 2024

Edited by proposal-police: This proposal was edited at {current_time}.

Proposal

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

Expensify Card - Expensify Card page loads infinitely

What is the root cause of that problem?

We set default value true to shouldShowLoading here

and then Here shouldShowLoading will be true

{(isLoading || firstRender.current) && shouldShowLoading && isFocused ? (

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

We should pass shouldShowLoading={false} here

This page is already wrapped in withPolicyAndFullscreenLoading

and here we are also checking for isLoading

const isLoading = !isOffline && (!cardSettings || (cardSettings.isLoading && Object.keys(cardSettings).length === 1));

so we can safely set the value to false. PolicyRulesPage has same issue

What alternative solutions did you explore? (Optional)

We can pass shouldShowLoading={isLoadingReportData} here

@daledah
Copy link
Contributor

daledah commented Sep 10, 2024

Edited by proposal-police: This proposal was edited at 2024-09-10 09:23:07 UTC.

Proposal

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

  • Expensify Card page loads infinitely, unless user clicks on the same tab or refresh the page.

What is the root cause of that problem?

  • The issue occurs due to the following condition:

    {(isLoading || firstRender.current) && shouldShowLoading && isFocused ? (
    which is always true because firstRender.current is always true.

  • We are using firstRender as a ref. When its value changes, it doesn't trigger a re-render. Initially, firstRender.current is set to true, and when updated to false, the loading state remains displayed since no re-render occurs.

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

What alternative solutions did you explore? (Optional)

Option 1

Option 2

  • In other pages, we always wrap their contents by the WorkspacePageWithSections. So in this page, we should do the same.
  1. First, remove:

  1. Then, wrap this page:

    by the WorkspacePageWithSection as we did with other page:
        <WorkspacePageWithSections
            shouldUseScrollView
            icon={Illustrations.HandCard}
            headerText={translate('workspace.common.expensifyCard')}
            route={route}
            guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_EXPENSIFY_CARD}
            shouldShowOfflineIndicatorInWideScreen
        >

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

melvin-bot bot commented Sep 10, 2024

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Sep 10, 2024

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

@daledah
Copy link
Contributor

daledah commented Sep 10, 2024

Proposal updated

@allgandalf
Copy link
Contributor

allgandalf commented Sep 10, 2024

@daledah's RCA is correct, and their solution (option 2) tests well , we can proceed with them

Also @daledah can you point out the offending PR please

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Sep 10, 2024

Current assignees @chiragsalian and @mountiny are eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@daledah
Copy link
Contributor

daledah commented Sep 11, 2024

I plan to revert all changes in PR, then apply my option 1 in my proposal:

We can use showLoadingAsFirstRender: false in case of WorkspaceExpensifyCardPageEmptyState in here

What do you think @chiragsalian @mountiny?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 11, 2024
@melvin-bot melvin-bot bot changed the title [$50] Expensify Card - Expensify Card page loads infinitely [HOLD for payment 2024-09-18] [$50] Expensify Card - Expensify Card page loads infinitely Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 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 Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.31-26 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-09-18. 🎊

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

Copy link

melvin-bot bot commented Sep 11, 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:

  • [@rushatgabhane / @allgandalf] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane / @allgandalf] 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:
  • [@rushatgabhane / @allgandalf] 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:
  • [@rushatgabhane / @allgandalf] Determine if we should create a regression test for this bug.
  • [@rushatgabhane / @allgandalf] 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:

@allgandalf allgandalf removed their assignment Sep 11, 2024
@AttockOffice85
Copy link

Contributor details
Your Expensify account email: attockofficeworkonly@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01c7ba3745b8d54a7f

Copy link

melvin-bot bot commented Sep 12, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@AttockOffice85
Copy link

Hi, I am new as a contributor/user to the Expensify app.
And tried to enable Expensify Card(s) and few other features but failing again and again.

Kindly help in this regards.

Bug6598003_1725915441991-reproducing-issue.mp4

@Christinadobrzyn
Copy link
Contributor

Hi there, can you check to see if this regression is related to this issue? I'm having trouble finding the PR linked.

@mountiny
Copy link
Contributor

@Christinadobrzyn The linked issue seems to be purely oldDot and the changes in the issue are only in Newdot so I dont think it can be related

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

melvin-bot bot commented Sep 18, 2024

Payment Summary

Upwork Job

BugZero Checklist (@sonialiap)

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

@mountiny
Copy link
Contributor

@daledah and @rushatgabhane $50

@sonialiap
Copy link
Contributor

sonialiap commented Sep 19, 2024

Payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Sep 19, 2024
Copy link

melvin-bot bot commented Sep 24, 2024

@chiragsalian, @sonialiap, @rushatgabhane, @mountiny, @daledah Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Sep 24, 2024
@sonialiap
Copy link
Contributor

@rushatgabhane bumping for the checklist 😊

@mountiny
Copy link
Contributor

@sonialiap This was a feature behind beta, and we will add the tests for this feature in one go as part of the project. I think for now we can skip the checklist and pay out

@sonialiap
Copy link
Contributor

Sounds good 👍
Payment via Upwork completed already and Rushat will need to request via ND. Closing this since we don't need to fill out the checklist

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@garrettmknight
Copy link
Contributor

$50 approved for @rushatgabhane

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