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 for payment 2025-01-07] Expense - Receipt placeholder is blank without receipt icon when expense is deleted offline #53532

Closed
8 tasks done
IuliiaHerets opened this issue Dec 4, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 4, 2024

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: 9.0.71-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to chat.
  3. Submit an expense.
  4. Go offline.
  5. Go to transaction thread.
  6. Click on the report header > Delete expense.
  7. Delete the expense.

Expected Result:

The receipt placeholder in the expense preview will show the receipt icon when the expense is deleted offline.

Actual Result:

The receipt placeholder in the expense preview is blank without receipt icon when the expense is deleted offline.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6683851_1733283433010.20241204_113335.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @bfitzexpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Dec 4, 2024
Copy link

melvin-bot bot commented Dec 4, 2024

Triggered auto assignment to @youssef-lr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Dec 4, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Dec 4, 2024

💬 A slack conversation has been started in #expensify-open-source

@melvin-bot melvin-bot bot added the Daily KSv2 label Dec 4, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@IuliiaHerets
Copy link
Author

Different behavior in Prod

Screen.Recording.2024-12-04.at.11.17.07.AM.mov

@shubham1206agra
Copy link
Contributor

Offending PR #52848

@brunovjk
Copy link
Contributor

brunovjk commented Dec 4, 2024

Do you have any idea what might be causing this bug @gijoe0295? I'll look into it in a moment. Thanks

@gijoe0295
Copy link
Contributor

Checking

@youssef-lr
Copy link
Contributor

any update @gijoe0295?

@puneetlath puneetlath added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 4, 2024
@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 4, 2024

@brunovjk I found the root cause but want to confirm the expected behavior before implementing the PR.

What do we want to show in receipt placeholder when the expense is deleted offline? Both in report preview & in expense preview.

  1. Empty receipt placeholder:

Screenshot 2024-12-04 at 22 49 22

  1. Nothing (current production behavior):

Screenshot 2024-12-04 at 22 48 53

cc @Expensify/design

@brunovjk
Copy link
Contributor

brunovjk commented Dec 4, 2024

I believe the first option, but @youssef-lr can you confirm it please? Thanks

@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 4, 2024

If we go with (1) then we should consider the case where there are more than 1 expense in the report and delete 1 of those offline, which would be shown in the report preview thumbnails? Hide the deleted ones or show empty placeholder for them (the deleted)?

I myself suggest (2). Because:

  • When we delete an expense WITH receipt, we also do not show anything in receipt thumbnail (option 2)
  • we clear the whole transaction data so it could be quite complicated if follow (1).

@youssef-lr
Copy link
Contributor

I like option 2 as well.

@brunovjk
Copy link
Contributor

brunovjk commented Dec 6, 2024

Thank you @youssef-lr. Do you have everything you need to raise the PR @gijoe0295? Thank you :D

@melvin-bot melvin-bot bot added the Overdue label Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

@youssef-lr, @bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@gijoe0295
Copy link
Contributor

Just need to test carefully. Will be ready tomorrow.

@bfitzexpensify
Copy link
Contributor

Great, thank you @gijoe0295

@melvin-bot melvin-bot bot removed the Overdue label Dec 10, 2024
@brunovjk
Copy link
Contributor

Any updates on the PR @gijoe0295? Thanks

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 12, 2024
@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 12, 2024

@brunovjk Here is the PR #54051.

Copy link

melvin-bot bot commented Dec 27, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 31, 2024
@melvin-bot melvin-bot bot changed the title Expense - Receipt placeholder is blank without receipt icon when expense is deleted offline [HOLD for payment 2025-01-07] Expense - Receipt placeholder is blank without receipt icon when expense is deleted offline Dec 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 31, 2024
Copy link

melvin-bot bot commented Dec 31, 2024

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

Copy link

melvin-bot bot commented Dec 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.79-5 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 2025-01-07. 🎊

Copy link

melvin-bot bot commented Dec 31, 2024

@youssef-lr @bfitzexpensify @youssef-lr The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@brunovjk
Copy link
Contributor

brunovjk commented Jan 6, 2025

I believe we can go with the original issue. I created the regression test already considering the issue scenario here.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jan 7, 2025
Copy link

melvin-bot bot commented Jan 7, 2025

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@bfitzexpensify
Copy link
Contributor

Cool, closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants