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

Expense - "Unapprove" option is available in report with deleted expense that has comments #44991

Closed
6 tasks done
lanitochka17 opened this issue Jul 8, 2024 · 16 comments
Closed
6 tasks done
Assignees

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 8, 2024

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

  1. Go to staging.new.expensify.com
  2. [User A] Submit two expenses to User B
  3. [User A] Go to transaction thread of one of the expenses, and add some comments
  4. [User A] Delete the expense that has comments
  5. [User B] Go to DM with User A
  6. {User B] Click on the expense preview
  7. [User B] Pay the report
  8. [User B] Go to the report that has comments (expense deleted)
  9. [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?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6536088_1720456580636.20240709_002903.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 8, 2024
Copy link

melvin-bot bot commented Jul 8, 2024

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

Copy link
Contributor

github-actions bot commented Jul 8, 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.

@lanitochka17
Copy link
Author

@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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

Looking into this now

@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

Think I know what caused this, testing locally.

@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

Having trouble repro-ing locally.

@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

Was able to repro and confirm it stems from this PR

cc: @rushatgabhane @Beamanator

@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

Demoting because this is edge case.

@blimpich blimpich added Daily KSv2 and removed DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jul 8, 2024
@blimpich blimpich assigned Beamanator and rushatgabhane and unassigned blimpich Jul 8, 2024
@blimpich
Copy link
Contributor

blimpich commented Jul 8, 2024

@Beamanator @rushatgabhane assigned both of you as this is follow up for this PR you worked on recently.

@rushatgabhane
Copy link
Member

cool cool we have to check for deleted report here

https://github.com/Expensify/App/pull/44229/files#diff-409b0e2fb439856e9897b808014031ce244a427d116ed30f37a2e0117599adc4R202

@garrettmknight
Copy link
Contributor

@rushatgabhane I don't think we should be showing Unapprove at the expense level to begin with.

@Beamanator
Copy link
Contributor

True, I'm removing the Unapprove button from showing at the expense level in #45049, as that also fixes #44969

@Beamanator
Copy link
Contributor

Fix merged & CPing

@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

@Beamanator, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick!

@Beamanator
Copy link
Contributor

This should be fixed already

@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants