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 - Expense preview is shown briefly after deleting expense and returning to main chat #49094

Closed
6 tasks done
IuliiaHerets opened this issue Sep 12, 2024 · 10 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2

Comments

@IuliiaHerets
Copy link

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.33-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/4955466
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to DM that has no unsettled expense.
  3. Submit an expense.
  4. Click on the expense preview.
  5. Click on the report header.
  6. Click Delete expense.
  7. Delete the expense.

Expected Result:

The expense preview should not appear after deleting the expense and returning to the main chat (production behavior).

Actual Result:

The expense preview is shown briefly after deleting the expense and returning to the main chat.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6601072_1726150029962.bandicam_2024-09-12_21-59-17-699.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

Triggered auto assignment to @RachCHopkins (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.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 12, 2024
Copy link
Contributor

👋 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

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

@dangrous
Copy link
Contributor

seems very minor (I'd argue shouldn't block deploy) but let me see if I can find a cause quickly!

@Nodebrute
Copy link
Contributor

Nodebrute commented Sep 12, 2024

Edited by proposal-police: This proposal was edited at 2024-09-12 15:45:18 UTC.```

Proposal

Please re-state the problem that we are trying to solve in this issue.

Expense preview is shown briefly after deleting expense and returning to main chat

What is the root cause of that problem?

We are using setTimeout here

setTimeout(() => {
IOU.deleteMoneyRequest(iouTransactionID, requestParentReportAction, isSingleTransactionView);
}, CONST.ANIMATED_TRANSITION);

What changes do you think we should make in order to solve the problem?

We should remove setTimeout

setTimeout(() => {
IOU.deleteMoneyRequest(iouTransactionID, requestParentReportAction, isSingleTransactionView);
}, CONST.ANIMATED_TRANSITION);

    ReportUtils.navigateBackAfterDeleteTransaction(navigateBackToAfterDelete.current, true);
                            if (!requestParentReportAction) {
                                return;
                            }

                                IOU.deleteMoneyRequest(iouTransactionID, requestParentReportAction, isSingleTransactionView);
                
                        }

What alternative solutions did you explore? (Optional)

@Nodebrute
Copy link
Contributor

Regression from #48055

cc: @daledah @alitoshmatov @dangrous

@dangrous
Copy link
Contributor

thanks @Nodebrute! I wish I had looked here instead of waiting 15 mins running git bisect to come up with the same source haha.

@luacmartins
Copy link
Contributor

I'm gonna revert the offending PR.

@luacmartins luacmartins self-assigned this Sep 12, 2024
@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Sep 12, 2024
@luacmartins
Copy link
Contributor

This is fixed on staging. 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. Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants