Skip to content

[HOLD for payment 2023-12-08] [$500] Distance - Prevent deleting receipt #29684

Closed

Description

@lanitochka17

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


Version Number: 1.3.84-6

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Expensify/Expensify Issue URL: Applause - Internal Team

Issue reported by: Applause - Internal Team

Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to + > Request money > Distance
  3. Create a distance request to the workspace chat
  4. Click on the distance request preview twice
  5. Click on the receipt > Three-dot menu > Delete receipt > Delete
  6. Click on Distance
  7. Add a more stop and Save it

Expected Result:

The new distance is saved

New: You should not be able to remove the distance receipt in the first place

Actual Result:

The new distance is not saved. Clicking on Save does not save it and close the edit page

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6239133_1697466370603.20231016_205452.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019e0aeb0e907b54cf
  • Upwork Job ID: 1715165699664687104
  • Last Price Increase: 2023-11-22
  • Automatic offers:
    • dukenv0307 | Contributor | 27853396

Activity

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

    @melvin-bot

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

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

    @alitoshmatov
    Contributor

    Looks like receipt is required to edit distance request.

    Backend is sending error saying that receipt is not found
    Screenshot 2023-10-16 at 20 39 13

    I think expected result should be sorted out before proceeding: Should distance request be allowed to be edited if its receipt is deleted?

  5. dummy-1111 commented on Oct 16, 2023

    @dummy-1111
    Contributor

    This looks like a backend issue
    The backend returns 404 as below
    image

  6. hnkuanx commented on Oct 17, 2023

    @hnkuanx
    Contributor

    Seems like a backend issue, I think ideally when receipt is not available during distance request update, backend should generate a new receipt based on newly selected waypoints.

  7. stephanieelliott commented on Oct 20, 2023

    @stephanieelliott
    Contributor

    Ok, thanks! Adding labels to assign an internal engineer for BE changes.

  8. melvin-bot commented on Oct 20, 2023

    @melvin-bot

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

  9. 75 remaining items

  10. melvin-bot commented on Dec 1, 2023

    @melvin-bot

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

  11. melvin-bot commented on Dec 1, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.6-2 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-12-08. 🎊

    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:

  12. melvin-bot commented on Dec 1, 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:

    • [@Santhosh-Sellavel] The PR that introduced the bug has been identified. Link to the PR:
    • [@Santhosh-Sellavel] 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:
    • [@Santhosh-Sellavel] 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:
    • [@Santhosh-Sellavel] Determine if we should create a regression test for this bug.
    • [@Santhosh-Sellavel] 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.
    • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  13. stephanieelliott commented on Dec 8, 2023

    @stephanieelliott
    Contributor

    Summarizing payment on this issue:

  14. Santhosh-Sellavel commented on Dec 10, 2023

    @Santhosh-Sellavel
    Collaborator

    Regression Steps should be enough here because the behavior was intentional earlier when it was added. Let me know your thoughts @thienlnam

    Steps

    1. Create a distance request
    2. After the request is created, go to the transaction thread report
    3. Click on the receipt image
    4. Click on the three-dot in the attachment modal
    5. Verify that only the download option appears
  15. stephanieelliott commented on Dec 13, 2023

    @stephanieelliott
    Contributor

    Issue for QA test here: https://github.com/Expensify/Expensify/issues/349090

    All clear here, @Santhosh-Sellavel please request your payment via newdot!

  16. Santhosh-Sellavel commented on Jan 10, 2024

    @Santhosh-Sellavel
    Collaborator

    Requested on ND

  17. JmillsExpensify commented on Jan 14, 2024

    @JmillsExpensify
    Contributor

    $500 payment approved for @Santhosh-Sellavel based on this comment.

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