Skip to content

[HOLD for payment 2023-10-10] [$500] Settings - Profile - User is able to delete default contact method, result in error #26773

Closed

Description

@izarutskaya

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. Login with any account in 2 tabs.
  2. From first tab, open settings => profile => contact methods, choose the secondary contact method, press Delete.
  3. From second tab, open settings => profile => contact methods, choose the secondary contact method, press Set As Default.
  4. From the first tab, press Delete.
  5. Observer the contact method field.

Expected Result:

User shouldn't be able to delete default contact method.

Actual Result:

User is able to delete default contact method, result in error

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.63-0

Reproducible in staging?: Y

Reproducible in production?: Y

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

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

Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-08-29.At.11.27.20.mp4
Recording.1449.mp4

Expensify/Expensify Issue URL:

Issue reported by: @hungvu193

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011a89cd5b6cb92262
  • Upwork Job ID: 1699163308725714944
  • Last Price Increase: 2023-09-12
  • Automatic offers:
    • Ollyws | Reviewer | 26653028
    • hungvu193 | Reporter | 26653029

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 5, 2023
  2. melvin-bot commented on Sep 5, 2023

    @melvin-bot

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

  3. melvin-bot commented on Sep 5, 2023

    @melvin-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
  4. izarutskaya commented on Sep 5, 2023

    @izarutskaya
    Author

    Proposal from @hungvu193

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

    User is able to delete default contact method, result in error

    What is the root cause of that problem?

    In current ContactMethodDetailsPage, we don't a have logic to hide the delete modal or prevent user from deleting the current contact method even it's default contact methods once modal is opened.

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

    Solution 1:
    Add an useEffect inside ContactMethodDetailsPage, if current contact method is default contact method and Confirm Modal is opened, we should hide the modal.
    Solution 2:
    Disabled the Yes, continue button if current contact method is default contact method.

    What alternative solutions did you explore? (Optional)

    N/A

  5. dummy-1111 commented on Sep 5, 2023

    @dummy-1111
    Contributor

    I think this issue is related to both backend and frontend
    The backend should return error when a user tries to delete his default contact method. This is possible for sure
    The frontend should show error message like "You can't delete your default contact method" when press Yes button

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 5, 2023
  7. changed the title [-]Settings - Profile - User is able to delete default contact method, result in error[/-] [+][$500] Settings - Profile - User is able to delete default contact method, result in error[/+] on Sep 5, 2023
  8. melvin-bot commented on Sep 5, 2023

    @melvin-bot
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 5, 2023
  10. melvin-bot commented on Sep 5, 2023

    @melvin-bot

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

  11. melvin-bot commented on Sep 5, 2023

    @melvin-bot

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

  12. hungvu193 commented on Sep 6, 2023

    @hungvu193
    Contributor

    @izarutskaya Can you update the reporter and proposal, it was actually me. Sorry for this inconvenient.

  13. 25 remaining items

  14. changed the title [-][$500] Settings - Profile - User is able to delete default contact method, result in error[/-] [+][HOLD for payment 2023-10-10] [$500] Settings - Profile - User is able to delete default contact method, result in error[/+] on Oct 3, 2023
  15. melvin-bot commented on Oct 3, 2023

    @melvin-bot

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

  16. melvin-bot commented on Oct 3, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.76-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 2023-10-10. 🎊

    After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

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

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

    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
  17. melvin-bot commented on Oct 3, 2023

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

    • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR: N/A
    • [@Ollyws] 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:
    • [@Ollyws] 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:
    • [@Ollyws] Determine if we should create a regression test for this bug.
    • [@Ollyws] 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.
    • [@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  18. abekkala commented on Oct 4, 2023

    @abekkala
    Contributor

    PAYMENTS FOR OCT 10

  19. Ollyws commented on Oct 10, 2023

    @Ollyws
    Contributor

    BugZero Checklist:
    I don't think we can say any PR caused this issue, it's just not something we considered to check for when implementing.
    This is pretty edge case and not really related to any important user flow, it's also not that easy to test for so I don't think a regression test is useful here.

  20. abekkala commented on Oct 10, 2023

    @abekkala
    Contributor

    @hungvu193 payment made [$50] and contract ended - thank you! 🎉

  21. abekkala commented on Oct 10, 2023

    @abekkala
    Contributor

    @Ollyws payment made [$500] and contract ended - thank you! 🎉

  22. abekkala commented on Oct 10, 2023

    @abekkala
    Contributor

    closing

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions