App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-01-18] [Card Settings] ๐Ÿ› "Physical card number" row is showing when the user has not completed their shipping details yet

Open kevinksullivan opened this issue 2 years ago โ€ข 28 comments

If you havenโ€™t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v1.4.16-3 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): [email protected]

Issue reported by: @kevinksullivan Slack conversation: https://expensify.slack.com/archives/C05DWUDHVK7/p1703261097098169

Action Performed:

  1. Assigned >$0 expensify card limit to [email protected]
  2. Logged in to [email protected] and navigated to settings

Expected Result:

Only a "virtual card number" row should be showing until a user activates their physical card

Actual Result:

The "Physical card number" row is already showing

Platforms:

  • [ ] Android: Native
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

image

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cecc6a59ed91a8f9
  • Upwork Job ID: 1738617571260575744
  • Last Price Increase: 2023-12-23

kevinksullivan avatar Dec 22 '23 17:12 kevinksullivan

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

melvin-bot[bot] avatar Dec 22 '23 17:12 melvin-bot[bot]

Bug0 Triage Checklist (Main S/O)

  • [ ] This "bug" occurs on a supported platform (ensure Platforms in OP are โœ…)
  • [ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • [ ] This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • [ ] This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • [ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

melvin-bot[bot] avatar Dec 22 '23 17:12 melvin-bot[bot]

The fix for this one is here https://github.com/Expensify/App/blob/9208c95e3c9b375897e7133696ffcdb07b67fb74/src/pages/settings/Wallet/ExpensifyCardPage.js#L260 We shouldnโ€™t check if the object is empty, we should also check if the card is in the correct state - ACTIVE (3)

grgia avatar Dec 22 '23 21:12 grgia

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

melvin-bot[bot] avatar Dec 23 '23 17:12 melvin-bot[bot]

Triggered auto assignment to Contributor Plus for review of internal employee PR - @sobitneupane (Internal)

melvin-bot[bot] avatar Dec 23 '23 17:12 melvin-bot[bot]

@grgia, @sobitneupane should this be internal or external? I'm off the next week, so please move the issue along if possible without me (not that I'd really do much as BZ...)

mallenexpensify avatar Dec 23 '23 17:12 mallenexpensify

@mallenexpensify, @sobitneupane, @grgia Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Dec 27 '23 11:12 melvin-bot[bot]

@mallenexpensify, @sobitneupane, @grgia Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Dec 29 '23 11:12 melvin-bot[bot]

I believe this can be resolved externally. But I am not sure if it can be tested externally.

sobitneupane avatar Dec 29 '23 11:12 sobitneupane

@mallenexpensify, @sobitneupane, @grgia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Jan 01 '24 12:01 melvin-bot[bot]

@mallenexpensify, @sobitneupane, @grgia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Jan 01 '24 18:01 melvin-bot[bot]

I can get a PR up for this one today

grgia avatar Jan 02 '24 20:01 grgia

@mallenexpensify @sobitneupane @grgia this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Jan 05 '24 17:01 melvin-bot[bot]

Working on PR

grgia avatar Jan 05 '24 17:01 grgia

Reviewing label has been removed, please complete the "BugZero Checklist".

melvin-bot[bot] avatar Jan 11 '24 08:01 melvin-bot[bot]

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.24-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/34040

If no regressions arise, payment will be issued on 2024-01-18. :confetti_ball:

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

  • @sobitneupane requires payment through NewDot Manual Requests

melvin-bot[bot] avatar Jan 11 '24 08:01 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:

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

melvin-bot[bot] avatar Jan 11 '24 08:01 melvin-bot[bot]

Payment Summary

Upwork Job

  • Reviewer: @sobitneupane owed $500 via NewDot

BugZero Checklist (@mallenexpensify)

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

melvin-bot[bot] avatar Jan 18 '24 17:01 melvin-bot[bot]

Contributor+: @sobitneupane due $500 via NewDot.

@sobitneupane can you please propose regression test steps? Thx

mallenexpensify avatar Jan 19 '24 22:01 mallenexpensify

@sobitneupane can you propose the regression steps plz?

mallenexpensify avatar Jan 24 '24 01:01 mallenexpensify

@mallenexpensify Sorry for the delay. I will be able to work on the checklist only in the weekend. I am working only 50% this week.

sobitneupane avatar Jan 24 '24 02:01 sobitneupane

@mallenexpensify, @sobitneupane, @grgia Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Jan 29 '24 15:01 melvin-bot[bot]

not overdue, waiting on checklist / payments

grgia avatar Jan 29 '24 21:01 grgia

@sobitneupane plz update the checklist.

mallenexpensify avatar Jan 30 '24 22:01 mallenexpensify

I will work on the checklist before weekend.

sobitneupane avatar Feb 01 '24 09:02 sobitneupane

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:

  • [ ] [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

https://github.com/Expensify/App/pull/26915

  • [ ] [@sobitneupane] 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:

https://github.com/Expensify/App/pull/26915#issuecomment-1923371735

  • [ ] [@sobitneupane] 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:

It was a case missed while introducing a new feature.

  • [ ] [@sobitneupane] Determine if we should create a regression test for this bug.

No.

sobitneupane avatar Feb 02 '24 09:02 sobitneupane

@mallenexpensify, @sobitneupane, @grgia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Feb 05 '24 15:02 melvin-bot[bot]

@sobitneupane I feel like we should have a regression test for this, unless we're confident it won't ever happen again. @grgia , what do you think?

mallenexpensify avatar Feb 07 '24 00:02 mallenexpensify

I did the test by adding some data in onyx in local environment. I will need some help from @grgia to finalize the regression steps for QA.

Regression Test Proposal: (QA steps from PR)

  1. In Old Dot: Assign >$0 expensify card limit to @expensifail.com account
  2. In New Dot: Logged in to @expensifail.com account and navigated to settings
  3. Go to Expensify Card Page /settings/wallet/card/expensify.com and verify that virtual card row is displayed, no physical card row is displayed, and button reads "Get physical card" โœ…
  4. Go through Get Physical Card Flow
  5. After completion, ensure that physical card row is displayed โœ…

Do we agree ๐Ÿ‘ or ๐Ÿ‘Ž

sobitneupane avatar Feb 08 '24 09:02 sobitneupane

@sobitneupane LGTM

grgia avatar Feb 08 '24 21:02 grgia