Skip to content

[HOLD for payment 2022-12-20] DEV: Add Debit Card Page Console Error Of Invalid Props Type #13068

Closed

Description

@kavimuru

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. Close App
  2. Open App Again
  3. Click On Avatar
  4. Click On Payments
  5. Click On Add Payment Method
  6. Select Debit Card

Expected Result:

Console Error Shouldn't Appear

Actual Result:

Console Error Of In Valid Prop Type Appears

Workaround:

unknown

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number: 1.2.31-8
Reproducible in staging?: Need reproduction
Reproducible in production?: Need reproduction
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Screen.Recording.2022-11-26.at.8.46.54.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @syedsaroshfarrukhdot @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1669477885177529
Simulator Screen Shot - iPhone 13 Pro - 2022-11-26 at 20 51 05

View all open jobs on GitHub

Activity

  1. added
    Daily
    Needs Reproduction
    Bug
    on Nov 27, 2022
  2. melvin-bot commented on Nov 27, 2022

    @melvin-bot

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

  3. syedsaroshfarrukhdot commented on Nov 27, 2022

    @syedsaroshfarrukhdot
    Contributor

    Proposal

    It is straight forward fix we are using setupComplete: PropTypes.boolean which is invalid
    we need to change it to setupComplete: PropTypes.bool

    const propTypes = {
    /* Onyx Props */
    formData: PropTypes.shape({
    setupComplete: PropTypes.boolean,
    }),
    ...withLocalizePropTypes,
    };

    After Fixing :-

    Screen.Recording.2022-11-27.at.10.37.54.PM.mov
  4. slafortune commented on Nov 30, 2022

    @slafortune
    Contributor

    @syedsaroshfarrukhdot I wasn't able to reproduce this in production. On staging, I don't currently see the Debit Card option

    Are you still able to reproduce this?

  5. syedsaroshfarrukhdot commented on Nov 30, 2022

    @syedsaroshfarrukhdot
    Contributor

    @slafortune Yes, still able to reproduce it on version 1.2.34-1. I believe it is only dev warning of using invalid PropTypes.boolean

    Screen.Recording.2022-12-01.at.1.59.44.AM.mov
  6. syedsaroshfarrukhdot commented on Dec 4, 2022

    @syedsaroshfarrukhdot
    Contributor

    @slafortune Were You Able To Reproduce On Development Build ?

  7. luacmartins commented on Dec 5, 2022

    @luacmartins
    Contributor

    I'll work on this one since it's a simple fix.

  8. removed
    Needs Reproduction
    on Dec 5, 2022
  9. self-assigned this
    on Dec 5, 2022
  10. 15 remaining items

  11. added
    Weekly
    Awaiting Payment
    and removed
    Daily
    on Dec 13, 2022
  12. changed the title [-]DEV: Add Debit Card Page Console Error Of Invalid Props Type[/-] [+][HOLD for payment 2022-12-20] DEV: Add Debit Card Page Console Error Of Invalid Props Type[/+] on Dec 13, 2022
  13. melvin-bot commented on Dec 13, 2022

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.38-6 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 2022-12-20. 🎊

    After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:

    • External issue reporter
    • Contributor that fixed the issue
    • Contributor+ that helped on the issue and/or PR

    As a reminder, here are the bonuses/penalties that should be applied for any External issue:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  14. melvin-bot commented on Dec 13, 2022

    @melvin-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:

    • [@luacmartins] The PR that introduced the bug has been identified. Link to the PR: Refactor User_AddBillingCard in App #9648
    • [@luacmartins] 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: I was the author.
    • [@luacmartins] 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 the checklist already has a check for this
    • [@slafortune] A regression test has been added or updated so that the same bug will not reach production again. Link to the GH issue for creating the test here:
  15. michaelhaxhiu commented on Dec 14, 2022

    @michaelhaxhiu
    Contributor

    Can we make a note that @aneequeahmad is owed compensation for the bug reporting bonus?

  16. slafortune commented on Dec 14, 2022

    @slafortune
    Contributor

    Hey @aneequeahmad I just sent you an offer here - https://www.upwork.com/ab/applicants/1603156208534720512/offers

    Let me know as soon as you can accept that 👍

  17. aneequeahmad commented on Dec 14, 2022

    @aneequeahmad
    Contributor

    @slafortune I have accepted the offer. Thank you for mentioning

  18. added
    Daily
    and removed
    Weekly
    on Dec 20, 2022
  19. mallenexpensify commented on Dec 24, 2022

    @mallenexpensify
    Contributor

    It appears everyone has been paid, @slafortune you or I need to add a regression test then we can close

  20. luacmartins commented on Jan 9, 2023

    @luacmartins
    Contributor

    @mallenexpensify I don't think regression tests are needed in this case. This is a prop-types console warning and only happens in dev, since they are removed from the staging/prod Apps. QA wouldn't be able to test this anyways.

    It also seems like we are no longer accepting this kind of "bug" report - https://expensify.slack.com/archives/C02NK2DQWUX/p1673201417498099

    I'm gonna close this issue. Please reopen if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions