Expense - "Unapprove" option is available in report with deleted expense that has comments
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.5-4 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
- Go to staging.new.expensify.com
- [User A] Submit two expenses to User B
- [User A] Go to transaction thread of one of the expenses, and add some comments
- [User A] Delete the expense that has comments
- [User B] Go to DM with User A
- {User B] Click on the expense preview
- [User B] Pay the report
- [User B] Go to the report that has comments (expense deleted)
- [User B] Click on the report header
Expected Result:
"Unapprove" option should not appear since the expense is deleted, only comments are left in the report
Actual Result:
"Unapprove" options shows up even though the expense is deleted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- [x] Android: Native
- [x] Android: mWeb Chrome
- [x] iOS: Native
- [x] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [x] MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/2e55eb7b-9be4-46a6-94c3-4a5c46cc777e
Triggered auto assignment to @blimpich (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: 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:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
@blimpich FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
We think that this bug might be related to #wave-collect - Release 1
Looking into this now
Think I know what caused this, testing locally.
Having trouble repro-ing locally.
Demoting because this is edge case.
@Beamanator @rushatgabhane assigned both of you as this is follow up for this PR you worked on recently.
cool cool we have to check for deleted report here
https://github.com/Expensify/App/pull/44229/files#diff-409b0e2fb439856e9897b808014031ce244a427d116ed30f37a2e0117599adc4R202
@rushatgabhane I don't think we should be showing Unapprove at the expense level to begin with.
True, I'm removing the Unapprove button from showing at the expense level in https://github.com/Expensify/App/pull/45049, as that also fixes https://github.com/Expensify/App/issues/44969
Fix merged & CPing
@Beamanator, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick!
This should be fixed already