Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD App #28021] Scan - Unable to delete receipt after replacing it unless merchant name is entered #29766

Closed
6 tasks done
lanitochka17 opened this issue Oct 17, 2023 · 18 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 17, 2023

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: 1.3.85-0

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:

Issue reported by: Applause - Internal Team

Slack conversation:

Issue found when executing PR #29617

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to + > Request money > Scan
  3. Complete the scan request
  4. Open Scan request details page
  5. Click on the receipt > 3-dot menu > Replace
  6. Upload a photo
  7. Click on the receipt - 3-dot menu > Delete receipt > Delete
  8. Enter merchant name
  9. Click on the receipt - 3-dot menu > Delete receipt > Delete

Expected Result:

In Step 7, if the receipt cannot be deleted for some reason, there should be an error message or the delete action button should be hidden
In Step 9, if the empty fields must be filled before the receipt can be deleted, the app should only allow the deletion of receipt after both Amount and Merchant values are entered

Actual Result:

In Step 7, after deleting the receipt, it disappears and then reappears
In Step 9, the receipt can only be deleted after Merchant name is entered, while the amount field is still empty

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
Bug6240231_1697535759614.bandicam_2023-10-17_15-18-36-579.mp4
MacOS: Desktop

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

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

@paultsimura
Copy link
Contributor

If we want to maintain the current behavior and just allow removing the receipt, the changes should be made on the BE side, as the DetachReceipt API request returns the following:

{
    "jsonCode": 405,
    "message": "405 Cannot detach receipt from partial transaction",
    "onyxData": [],
    "requestID": "8179546a49d234ee-WAW"
}

I suppose the receipt state should be taken into consideration on the BE: if it's not scanning – then allow detaching.
Otherwise, it'd be better to clarify the expected behavior: hide the delete button, update the merchant automatically on the receipt replacement, etc.

@trjExpensify
Copy link
Contributor

@Gonals @luacmartins can you look at this one please?

I'm not 100% sure it'll be fixed in @joekaufmanexpensify issue.

@paultsimura

This comment was marked as outdated.

@melvin-bot melvin-bot bot added the Overdue label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@trjExpensify Huh... This is 4 days overdue. Who can take care of this?

@trjExpensify
Copy link
Contributor

Bump @Gonals @luacmartins on the above! #29766 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@luacmartins
Copy link
Contributor

I agree with @paultsimura, this seems to be an internal issue

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 27, 2023

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

@trjExpensify
Copy link
Contributor

Okay, but that wasn't really my question. 😅 The issue linked to has a similar root cause in that you are able to replace a receipt while it's still scanning. After which, you can run into these downstream "bugs" as side effects; 1) you can't delete the receipt 2) other participants can't see the replaced receipt

So just like we hide the ability to detach a receipt while it's still scanning, we should hide the ability to replace a receipt while it's still scanning. That avoids both of these issues. So my question is if that's going to be implemented in #28021? If so, can this issue go on hold until a PR is merged for that as we don't need to do anything in addition whether that be on the BE or FE.

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@luacmartins
Copy link
Contributor

Ah got it. It seems like we're leaning towards hiding the replace option while scan is in progress, but we still don't have a proposal for #28021. That being said, I agree that we can put this issue on hold until we have a PR for that issue. Thanks for raising this!

@luacmartins luacmartins changed the title Scan - Unable to delete receipt after replacing it unless merchant name is entered [HOLD App #28021] Scan - Unable to delete receipt after replacing it unless merchant name is entered Oct 30, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2023
@trjExpensify
Copy link
Contributor

Cool, cool. Dropping to weekly while it's on hold.

@melvin-bot melvin-bot bot removed the Overdue label Nov 2, 2023
@trjExpensify trjExpensify added Weekly KSv2 and removed Daily KSv2 labels Nov 2, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 10, 2023
@trjExpensify
Copy link
Contributor

Samesies.

@melvin-bot melvin-bot bot removed the Overdue label Nov 10, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@trjExpensify
Copy link
Contributor

Still held.

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 29, 2023
@trjExpensify
Copy link
Contributor

Same spot.

@melvin-bot melvin-bot bot removed the Overdue label Nov 29, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 8, 2023
@trjExpensify
Copy link
Contributor

Still held. Waiting on @Gonals to provide a secondary review of the proposal in: #28021 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Dec 11, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 19, 2023
@trjExpensify
Copy link
Contributor

Still held, PR is in review.

@melvin-bot melvin-bot bot removed the Overdue label Dec 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 28, 2023
@trjExpensify
Copy link
Contributor

PR hit staging yesterday, and I can see you can't run into this issue anymore because the ability to replace a receipt while it's still scanning has been removed. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants