Skip to content

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

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

Closed
2 of 6 tasks
lanitochka17 opened this issue Jul 8, 2024 · 17 comments
Labels
Daily KSv2 Engineering Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 8, 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.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
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6536222_1720466433439.20240709_031521.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 @tylerkaraszewski (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

@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
Copy link
Author

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

@mountiny
Copy link
Contributor

mountiny commented Jul 8, 2024

cc @luacmartins

@luacmartins
Copy link
Contributor

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
Copy link
Contributor

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

@luacmartins luacmartins added Internal Requires API changes or must be handled by Expensify staff and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jul 8, 2024
@luacmartins luacmartins changed the title Search - Action field remains as "Paid" after expenses are unapproved until page is revisited [Search v1] - Action field remains as "Paid" after expenses are unapproved until page is revisited Jul 8, 2024
@tylerkaraszewski tylerkaraszewski added Daily KSv2 and removed Hourly KSv2 labels Jul 9, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

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

Copy link

melvin-bot bot commented Jul 16, 2024

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

Copy link

melvin-bot bot commented Jul 18, 2024

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

@tylerkaraszewski
Copy link
Contributor

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

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 18, 2024
@luacmartins
Copy link
Contributor

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 luacmartins self-assigned this Jul 22, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jul 22, 2024
@luacmartins luacmartins moved this from HOT PICKS to Polish in [#whatsnext] #wave-collect Jul 23, 2024
@luacmartins luacmartins moved this from Polish to HOT PICKS in [#whatsnext] #wave-collect Jul 23, 2024
@luacmartins luacmartins removed their assignment Jul 23, 2024
@luacmartins luacmartins added the Hot Pick Ready for an engineer to pick up and run with label Jul 23, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

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

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

melvin-bot bot commented Jul 31, 2024

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

Copy link

melvin-bot bot commented Aug 2, 2024

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

@tylerkaraszewski
Copy link
Contributor

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

@melvin-bot melvin-bot bot removed the Overdue label Aug 2, 2024
@luacmartins
Copy link
Contributor

Yea, I think we can close this for now.

@github-project-automation github-project-automation bot moved this from HOT PICKS to Done in [#whatsnext] #wave-collect Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants