App icon indicating copy to clipboard operation
App copied to clipboard

[Search v1] - Action field remains as "Paid" after expenses are unapproved until page is revisited

Open lanitochka17 opened this issue 1 year ago • 7 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:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat as admin
  3. Submit two expenses
  4. Go to Search > Shared
  5. Click on the grouped expenses
  6. Pay elsewhere the expense
  7. Go back to Search > Shared
  8. Click on the grouped expenses
  9. Click on the report header
  10. Click Unapprove

Expected Result:

The action field for the grouped expenses will turn to "Action"

Actual Result:

The action field for the grouped expenses remains "Paid", until the Search page is revisited

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [ ] Android: Native
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [x] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/e7e4f5c9-c7af-4fa9-8fc5-6990d12ebb44

View all open jobs on GitHub

lanitochka17 avatar Jul 08 '24 20:07 lanitochka17

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

melvin-bot[bot] avatar Jul 08 '24 20:07 melvin-bot[bot]

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

  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.

github-actions[bot] avatar Jul 08 '24 20:07 github-actions[bot]

@tylerkaraszewski 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 avatar Jul 08 '24 20:07 lanitochka17

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

lanitochka17 avatar Jul 08 '24 20:07 lanitochka17

cc @luacmartins

mountiny avatar Jul 08 '24 21:07 mountiny

hmm this is a tricky one. We save the action in its own key in snapshot_ so the live updates don't change this key since the live onyx data, e.g. report_ and transactions_ don't have the action key.

luacmartins avatar Jul 08 '24 22:07 luacmartins

This is not a blocker though since I was able to reproduce in production.

luacmartins avatar Jul 08 '24 22:07 luacmartins

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

melvin-bot[bot] avatar Jul 12 '24 18:07 melvin-bot[bot]

@tylerkaraszewski Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar Jul 16 '24 18:07 melvin-bot[bot]

@tylerkaraszewski Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] avatar Jul 18 '24 18:07 melvin-bot[bot]

@luacmartins - do you think we can make this external, or are you interested in working on it?

tylerkaraszewski avatar Jul 18 '24 18:07 tylerkaraszewski

I can't reproduce this exact issue anymore since I don't see an option to Unapprove. I can reproduce with the Cancel payment option.

This happens because we update the report's statusNum in Onyx and computing the new state when cancelling the payment, but the Search page uses the action key computed on the server to determine what the next action should be. I'm not really sure how to solve since it'd require a fundamental change to the Search design.

luacmartins avatar Jul 22 '24 16:07 luacmartins

Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Jul 29 '24 18:07 melvin-bot[bot]

Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar Jul 31 '24 18:07 melvin-bot[bot]

8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

melvin-bot[bot] avatar Aug 02 '24 18:08 melvin-bot[bot]

@luacmartins What do you think should we just close this then?

tylerkaraszewski avatar Aug 02 '24 23:08 tylerkaraszewski

Yea, I think we can close this for now.

luacmartins avatar Aug 06 '24 06:08 luacmartins