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 2022-11-29] [$250] The error when enter invalid debit card information still appear after reload the page reported by @hans #12693

Closed
kavimuru opened this issue Nov 12, 2022 · 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 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kavimuru
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Navigate to Profile > Payment, click "Add payment method", choose "Debit card"
  2. Enter some random information and press "Save", you will see the error appear at the bottom, reload the page.
  3. Notice that the error still appear.

Expected Result:

Error text at the bottom should disappear after reload the page

Actual Result:

Error text at the bottom still appear after reload the page

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.2.27-0

Reproducible in staging?: y

Reproducible in production?: y

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

Screen.Recording.2022-11-12.at.00.07.40.mov
Recording.889.mp4

Expensify/Expensify Issue URL:

Issue reported by: @hans

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1668187065943279

View all open jobs on GitHub

@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 12, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 12, 2022

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@Puneet-here
Copy link
Contributor

Proposal

We clear the error at componentWillUnmount but it doesn't get invoked on refresh

componentWillUnmount() {
PaymentMethods.clearDebitCardFormErrorAndSubmit();

we need to add PaymentMethods.clearDebitCardFormErrorAndSubmit(); at constructor to fix this

@melvin-bot melvin-bot bot added the Overdue label Nov 14, 2022
@CortneyOfstad
Copy link
Contributor

Definitely appears to be an issue. Going to assign engineering to see if this needs to be Internal or External. Thinking External, but want a second pair of eyes to be sure.

@melvin-bot
Copy link

melvin-bot bot commented Nov 14, 2022

Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@NikkiWines
Copy link
Contributor

Looks like a good external issue! Applying the appropriate label

@NikkiWines NikkiWines removed their assignment Nov 14, 2022
@NikkiWines NikkiWines added the External Added to denote the issue can be worked on by a contributor label Nov 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 14, 2022

Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Nov 14, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 14, 2022

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

@melvin-bot melvin-bot bot changed the title The error when enter invalid debit card information still appear after reload the page reported by @hans [$250] The error when enter invalid debit card information still appear after reload the page reported by @hans Nov 14, 2022
@thesahindia
Copy link
Member

@Puneet-here's proposal looks good, but I don't have my mac right now so I haven't tested it. I will test this in the morning.

@hungvu193
Copy link
Contributor

Hello there, I'm the reporter of this bug, can you assign me as well?
Seem @kavimuru tagged the wrong person. Here's the slack thread (https://expensify.slack.com/archives/C049HHMV9SM/p1668187065943279).
Should I change my slack name to the same with github name to avoid this?

@thesahindia
Copy link
Member

@luacmartins, I like @Puneet-here's proposal.

C+ reviewed 🎀👀🎀

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 15, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 15, 2022

📣 @Puneet-here You have been assigned to this job by @luacmartins!
Please apply to this job in Upwork 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
Copy link

melvin-bot bot commented Nov 17, 2022

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:

  • @CortneyOfstad A regression test has been added or updated so that the same bug will not reach production again. (asked in BugZero here) Link to the GH issue for creating the test here: No GH needed, as TestRail already has the step included
  • @thesahindia @luacmartins The PR that introduced the bug has been identified. Link to the PR:
  • @CortneyOfstad 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. Appears the issue wasn't introduced via a PR
  • @CortneyOfstad A discussion in #contributor-plus 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. Not really a bug as this is more geared to a feature request.
  • @CortneyOfstad Payment has been made to the issue reporter (if applicable)
  • @CortneyOfstad Payment has been made to the contributor that fixed the issue (if applicable)
  • @CortneyOfstad Payment has been made to the contributor+ that helped on the issue (if applicable)

@thesahindia
Copy link
Member

The PR that introduced the bug has been identified. Link to the PR:

Not applicable ? It was an edge case ( more of a feature request ) and it was missed in the refactor

@melvin-bot melvin-bot bot added the Overdue label Nov 21, 2022
@CortneyOfstad
Copy link
Contributor

Tackling my checklist today 👍

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2022
@mountiny mountiny added Reviewing Has a PR in review Awaiting Payment Auto-added when associated PR is deployed to production labels Nov 22, 2022
@mountiny mountiny changed the title [$250] The error when enter invalid debit card information still appear after reload the page reported by @hans [HOLD for payment 2022-11-29] [$250] The error when enter invalid debit card information still appear after reload the page reported by @hans Nov 22, 2022
@hungvu193
Copy link
Contributor

Can I have reporting bonus for this issue?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Nov 29, 2022
@CortneyOfstad
Copy link
Contributor

Will have this paid by EOD today 👍

@CortneyOfstad
Copy link
Contributor

Job posting — https://www.upwork.com/jobs/~018c9998e3f5f89303

@hungvu193 @thesahindia @Puneet-here — I've sent over the contracts. Once those are accepted, I will get that payment sent out by EOD today 👍

Thanks!

@CortneyOfstad
Copy link
Contributor

Payments have been sent! Thanks!

@CortneyOfstad CortneyOfstad removed their assignment Nov 30, 2022
@Puneet-here
Copy link
Contributor

@CortneyOfstad, this is eligible for 50% bonus.

@CortneyOfstad
Copy link
Contributor

@Puneet-here Who is it eligible for? Sorry, this is my first time doing a payment.

@Puneet-here
Copy link
Contributor

For reviewer and contributor who fixed this issue.
It is written in this section
Screenshot 2022-11-30 at 6 49 58 PM

@CortneyOfstad
Copy link
Contributor

Sorry about that! @Puneet-here @thesahindia — I extended another contract for the bonus amount. I'll keep an eye on my email to see when you accept and I'll get that paid ASAP 👍

@Puneet-here
Copy link
Contributor

Accepted the offer, thanks!

@thesahindia
Copy link
Member

Accepted, thanks!

@CortneyOfstad
Copy link
Contributor

Thank you!! Both have been paid for the bonus 👍

@thesahindia
Copy link
Member

Let's close the issue.

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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

8 participants