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-03] [$250] Wallet - Verify button does not show loading indicator after entering magic code #49073

Closed
6 tasks done
IuliiaHerets opened this issue Sep 12, 2024 · 27 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

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 12, 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.33-1
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #48953
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Account has a virtual card.
  1. Go to staging.new.expensify.com
  2. Go to Account settings > Wallet.
  3. Click on the virtual card.
  4. Click Reveal details.
  5. Enter magic code.

Expected Result:

Verity button will show loading indicator after entering magic code (log in and adding contact method behavior).

Actual Result:

Verify button does not show loading indicator after entering magic code.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6600616_1726117661978.20240912_130413.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834276399647422536
  • Upwork Job ID: 1834276399647422536
  • Last Price Increase: 2024-09-12
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

@IuliiaHerets
Copy link
Author

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

@daledah
Copy link
Contributor

daledah commented Sep 12, 2024

Edited by proposal-police: This proposal was edited at 2024-09-12 13:25:39 UTC.

Proposal

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

Verify button does not show loading indicator after entering magic code.

What is the root cause of that problem?

We show the loading indicator when isLoading = true in onyx key account and we not update isloading to true when we call revealVirtualCardDetails API

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

We should add optimistic data when we call revealVirtualCardDetails API here to update isLoading to true

     const optimisticData: OnyxUpdate[] = [
            {
                onyxMethod: Onyx.METHOD.MERGE,
                key: ONYXKEYS.ACCOUNT,
                value: {isLoading: true},
            },
        ];

What alternative solutions did you explore? (Optional)

NA

@miljakljajic miljakljajic added the External Added to denote the issue can be worked on by a contributor label Sep 12, 2024
@melvin-bot melvin-bot bot changed the title Wallet - Verify button does not show loading indicator after entering magic code [$250] Wallet - Verify button does not show loading indicator after entering magic code Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

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

melvin-bot bot commented Sep 12, 2024

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

@cretadn22
Copy link
Contributor

Proposal

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

Verify button does not show loading indicator after entering magic code

What is the root cause of that problem?

We already have a flag account.isLoading to indicate the loading status, and we use this flag frequently throughout our app

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

However, when calling the API, we don't set account.isLoading to true in the optimisticData.

function revealVirtualCardDetails(cardID: number, validateCode: string): Promise<ExpensifyCardDetails> {

We also need to reset account.isLoading in both the success and failure data, which was missed in the previous proposal


    const optimisticData: OnyxUpdate[] = [
        {
            onyxMethod: Onyx.METHOD.MERGE,
            key: ONYXKEYS.ACCOUNT,
            value: {
                isLoading: true,
            },
        },
    ];

    const successData: OnyxUpdate[] = [
        {
            onyxMethod: Onyx.METHOD.MERGE,
            key: ONYXKEYS.ACCOUNT,
            value: {
                isLoading: false,
            },
        },
    ];

    const failureData: OnyxUpdate[] = [
        {
            onyxMethod: Onyx.METHOD.MERGE,
            key: ONYXKEYS.ACCOUNT,
            value: {
                isLoading: false,
            },
        },
    ];

What alternative solutions did you explore? (Optional)

@daledah
Copy link
Contributor

daledah commented Sep 15, 2024

@cretadn22 I think the main issue here is that we are missing the update of isLoading in the account and need to modify the Onyx data. The update of successData and failureData will be handled by default in the PR phase when we change optimisticData. Therefore, I think the improvement you suggested through my proposal is not really necessary.
cc @getusha

@melvin-bot melvin-bot bot added the Overdue label Sep 15, 2024
@getusha
Copy link
Contributor

getusha commented Sep 16, 2024

Reviewing

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2024
@getusha
Copy link
Contributor

getusha commented Sep 16, 2024

@daledah's proposal looks good to me and works well. they were the first to provide a working solution, other cases are something we could handle in the PR.

🎀 👀 🎀 C+ Reviewed.

Copy link

melvin-bot bot commented Sep 16, 2024

Triggered auto assignment to @Julesssss, 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 16, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

📣 @daledah You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
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 18, 2024
@miljakljajic miljakljajic removed the Bug Something is broken. Auto assigns a BugZero manager. label Sep 20, 2024
@miljakljajic miljakljajic removed their assignment Sep 20, 2024
@miljakljajic miljakljajic added the Bug Something is broken. Auto assigns a BugZero manager. label Sep 20, 2024
Copy link

melvin-bot bot commented Sep 20, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 20, 2024
@miljakljajic
Copy link
Contributor

I'm going out on parental leave, so I've assigned another BZ team member to take over when the issue is ready for payment. thank you @sakluger

@sakluger
Copy link
Contributor

I sent an offer to @daledah on Upwork https://www.upwork.com/nx/wm/offer/104091230.

The PR is merged, but not yet deployed.

@sakluger
Copy link
Contributor

The PR is deployed to staging, probably will be on prod today or Monday.

Copy link

melvin-bot bot commented Sep 27, 2024

@sakluger, @Julesssss, @getusha, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick!

@getusha
Copy link
Contributor

getusha commented Sep 29, 2024

PR was deployed a couple of days ago, seems like automation failed #49327 (comment)

@Julesssss
Copy link
Contributor

Can be paid in 4 days

@sakluger sakluger changed the title [$250] Wallet - Verify button does not show loading indicator after entering magic code [HOLD for payment 2024-10-03] [$250] Wallet - Verify button does not show loading indicator after entering magic code Sep 30, 2024
@sakluger sakluger added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Sep 30, 2024
@sakluger
Copy link
Contributor

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:

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

@sakluger
Copy link
Contributor

sakluger commented Oct 2, 2024

I'll pay this out tomorrow.

@getusha could you please handle the BZ checklist? Thanks!

@melvin-bot melvin-bot bot added the Overdue label Oct 2, 2024
@sakluger
Copy link
Contributor

sakluger commented Oct 2, 2024

Commenting for melvin.

@melvin-bot melvin-bot bot removed the Overdue label Oct 2, 2024
Copy link

melvin-bot bot commented Oct 3, 2024

Payment Summary

Upwork Job

BugZero Checklist (@sakluger)

  • 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/1834276399647422536/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@sakluger
Copy link
Contributor

sakluger commented Oct 3, 2024

Hey @daledah - somehow I accidentally closed the previous contract without paying it out, and now I can't reopen it. Sorry about that! I've sent you a new, duplicate offer: https://www.upwork.com/nx/wm/offer/104255119. Could you please let me know once you've accepted the new one?

@getusha could you please complete the BZ checklist?

@daledah
Copy link
Contributor

daledah commented Oct 4, 2024

@sakluger Done, thanks 🙏

@getusha
Copy link
Contributor

getusha commented Oct 6, 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:

[@getusha] The PR that introduced the bug has been identified. Link to the PR: #48628
[@getusha] 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: we missed this during a feature implementation.
[@getusha] 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: N/a
[@getusha] Determine if we should create a regression test for this bug. No, it's a minor visual issue.
[@getusha] 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. n/a

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Oct 6, 2024
@sakluger
Copy link
Contributor

sakluger commented Oct 7, 2024

Thanks! @daledah I completed payment on the contract. @getusha, please. use the payment summary to request payment via NewDot.

@sakluger sakluger closed this as completed Oct 7, 2024
@garrettmknight
Copy link
Contributor

$250 approved for @getusha

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

8 participants