App icon indicating copy to clipboard operation
App copied to clipboard

The error when enter invalid debit card information still appear after reload the page reported by @hans

Open kavimuru opened this issue 2 years ago β€’ 2 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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:

https://user-images.githubusercontent.com/43996225/201453294-396f1eba-a6ba-449d-8486-4a8647cb085a.mov

https://user-images.githubusercontent.com/43996225/201453301-a1ad84d3-32ba-4c80-b723-8629e23384c2.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 avatar Nov 12 '22 02:11 kavimuru

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

melvin-bot[bot] avatar Nov 12 '22 02:11 melvin-bot[bot]

Proposal

We clear the error at componentWillUnmount but it doesn't get invoked on refresh https://github.com/Expensify/App/blob/0d653cad15c32150c302ac12dc0acdbca1ece18b/src/pages/settings/Payments/AddDebitCardPage.js#L58-L59

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

Puneet-here avatar Nov 12 '22 07:11 Puneet-here

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.

CortneyOfstad avatar Nov 14 '22 13:11 CortneyOfstad

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

melvin-bot[bot] avatar Nov 14 '22 13:11 melvin-bot[bot]

Looks like a good external issue! Applying the appropriate label

NikkiWines avatar Nov 14 '22 19:11 NikkiWines

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

melvin-bot[bot] avatar Nov 14 '22 19:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Nov 14 '22 19:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Nov 14 '22 19:11 melvin-bot[bot]

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

thesahindia avatar Nov 14 '22 19:11 thesahindia

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?

hungvu193 avatar Nov 15 '22 03:11 hungvu193

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

C+ reviewed πŸŽ€πŸ‘€πŸŽ€

thesahindia avatar Nov 15 '22 10:11 thesahindia

πŸ“£ @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[bot] avatar Nov 15 '22 23:11 melvin-bot[bot]

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:

  • [x] @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:
  • [x] @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
  • [x] @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.
  • [x] @CortneyOfstad Payment has been made to the issue reporter (if applicable)
  • [x] @CortneyOfstad Payment has been made to the contributor that fixed the issue (if applicable)
  • [x] @CortneyOfstad Payment has been made to the contributor+ that helped on the issue (if applicable)

melvin-bot[bot] avatar Nov 17 '22 07:11 melvin-bot[bot]

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

thesahindia avatar Nov 17 '22 07:11 thesahindia

Tackling my checklist today πŸ‘

CortneyOfstad avatar Nov 21 '22 14:11 CortneyOfstad

Can I have reporting bonus for this issue?

hungvu193 avatar Nov 27 '22 13:11 hungvu193

Will have this paid by EOD today πŸ‘

CortneyOfstad avatar Nov 29 '22 18:11 CortneyOfstad

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 avatar Nov 29 '22 19:11 CortneyOfstad

Payments have been sent! Thanks!

CortneyOfstad avatar Nov 30 '22 12:11 CortneyOfstad

@CortneyOfstad, this is eligible for 50% bonus.

Puneet-here avatar Nov 30 '22 12:11 Puneet-here

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

CortneyOfstad avatar Nov 30 '22 13:11 CortneyOfstad

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

Puneet-here avatar Nov 30 '22 13:11 Puneet-here

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 πŸ‘

CortneyOfstad avatar Nov 30 '22 13:11 CortneyOfstad

Accepted the offer, thanks!

Puneet-here avatar Nov 30 '22 13:11 Puneet-here

Accepted, thanks!

thesahindia avatar Nov 30 '22 14:11 thesahindia

Thank you!! Both have been paid for the bonus πŸ‘

CortneyOfstad avatar Nov 30 '22 14:11 CortneyOfstad

Let's close the issue.

thesahindia avatar Nov 30 '22 14:11 thesahindia